Anyone can help me on file permission??

georgepatotk

Well-known member
Joined
Mar 1, 2004
Messages
431
Location
Malaysia
I do this code in ASp.Net, but it seems that I need a permission to access the folder. Does any one know how to apply the permission with coding?


to save to the folder: filename.PostedFile.SaveAs(sPath)
I think I need to assign permission before this line. What should I do?
 
NTFS Permissions

georgepatotk said:
To save to the folder: filename.PostedFile.SaveAs(sPath)
I think I need to assign permission before this line. What should I do?

With file write access with ASP.Net i believe you will need to give the ASPNET account of your computer permission to write to that directory. I dont think you need to do anything at code level, i believe you need to assign permissions to your folders at NTFS level.
 
Back
Top