How to upload a file as Read only

  • Thread starter Thread starter Pete Mahoney
  • Start date Start date
P

Pete Mahoney

Uploading the file to the server is no problem, but I don't want an
admin to upload some document to the server, and then have someone
able to change this document. I simply want to set read only on all
files uploaded to the server. Is there a simple way to do this in
ASP.Net?
 
Upload the files, then move it to a directory set to read only using some
form of directory watcher..........or interact with the ACL list. You will
have to call the appropriate Win 32 API functions through the P/Invoke layer
as I dont belive there are any native classes in .NET to do this.... Someone
has already written a wrapper to allow you to do ACL control in .NET though
...........
http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=e6098
575-dda0-48b8-9abf-e0705af065d9

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
 
Back
Top