Folder permission on server while uploading?

社会主义新天地 提交于 2019-12-12 02:45:17

问题


I want to upload files in my Asp.net application on server but I have to grant it R/W access so that I or anyone can upload files in it. Is there any way that I write some code or configuration lines in Web.config which solve this permission problem?


回答1:


You have to set the permissions on the folder for the account under which your application is running. This is an operating system level, and hence nothing can be done about it in Web.config. Be careful to only set the permissions on the one folder though, as your effectively opening it up to the internet through your application.



来源:https://stackoverflow.com/questions/3810721/folder-permission-on-server-while-uploading

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!