473,399 Members | 3,038 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Uploading files web service with NTFS security

wym
I have written a web service that provides the following methods:

UploadFile
SetNTFSSecurity

Their purpose is to allow a user to Upload a file to a shared folder
with "Everyone" as permission and using SetNTFSSecurity, allow for
tighter security on the files (remove the propagated "Everyone" from
parent folder and add specific users to the ACL.

My problem is putting it all together...

Problem 1:

In my aspx page, I would like to allow the user to upload entire
folders and for each file in folder, use the UploadFile service.
Currently, I'm using an html input button of type file, which only
allows you to choose ONE file at a time.

<INPUT id=uploadedFile type=file size=31 name=uploadedFile
runat="server">

After the file is chosen, I add it to a listbox. The user will keep
on adding to the listbox for the files to be uploaded. Finally, there
is a server side button which will call the UploadFile web service for
each file in the listbox. Obviously, this is extremely tedious for
the user and I'd like to simplify things by just allowing the user to
choose an entire folder and then recurse my way through it to feed
each file to my web function.

I'm willing to look at third party controls if the solution is too
complicated.

Problem 2:

After I have uploaded the files to a file server, I'd like to set
security on them. I'm using ADSI's ADsSecurity.dll to set security.
In my machine.config, I have set the process to run under my
username/password. I am an administrator on the remote file server
but for some reason, I can't set the security on it. This function
was written based on KB 279682's script. I'm able to set the file
security of a remote machine, but not with the web service? I can
however set security rights if the file server and the web service are
on the same machine... Does anyone have any experience with this?

Again, I'm willing to look at a third party solution.
Nov 18 '05 #1
0 1381

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: travelling_nerd | last post by:
Folks: I have some zip files I'd like to serve to authenticated users on my site, but would like to prevent unauthorized users from using an absolute path to get to these zip files. For example...
0
by: Nikolay Petrov | last post by:
I need to upload big files to a web service. At client side I use the FileInput contol to get the local filename and then a binary reader to get file contents as byte array, then send this byte...
0
by: Alex | last post by:
my app was working fine in VB.NET 2003 (and framework 1.1). Now with VB.NET 2005 (framework 2.0) the uploading to an http server (ie. www.sharebigfile.com) stops with the error "The request was...
2
by: WSE with SSL and large amount of data | last post by:
Hi there, What's the better strategy for uploading large files trough webservices? I can use Dime/WS-Attachments but for files with over 5MB in size, maybe I got some timeout/refuse problems in...
3
by: Kamen TOMOV | last post by:
Hi, Is uploading recursively directories to a web server possible with JavaScript? I mean is it possible read a directory recursively and dynamically construct <input type="file"> with value...
10
by: dermot | last post by:
I have wrriten a small windows service application in visual studio ..net 2003 which listens for incoming FTP files. These files would overwrite over time due to duplicate file names. However any...
4
by: Mukesh | last post by:
Hi all I am trying to upload and save as a picture to "root/Photos" folder in my web application. I am using this code to perform this task DirectoryInfo strFolder = new...
0
by: Raj | last post by:
Hello, I am planning to provide the Pause/Resume while uploading files. Our site is using both java applet and activex to do this. The list of selected files will be stored in an encrypted...
221
Atli
by: Atli | last post by:
You may be wondering why you would want to put your files “into” the database, rather than just onto the file-system. Well, most of the time, you wouldn’t. In situations where your PHP application...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.