上载时服务器上的文件夹权限? [英] Folder permission on server while uploading?

查看:97
本文介绍了上载时服务器上的文件夹权限?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在服务器上的Asp.net应用程序中上载文件,但是我必须授予它R/W访问权限,以便我或任何人都可以在其中上载文件.我有什么办法在Web.config中编写一些代码或配置行来解决此权限问题?

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?

推荐答案

您必须在运行应用程序的帐户的文件夹上设置权限.这是操作系统级别,因此在Web.config中无法对其进行任何操作.不过请小心,只在一个文件夹上设置权限,因为您可以通过应用程序有效地将其打开到Internet.

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.

这篇关于上载时服务器上的文件夹权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆