如何上传服务器asp.net之外的文件 [英] how to upload a file outside the server asp.net
本文介绍了如何上传服务器asp.net之外的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要问如何上传我的文件服务器的外部(安全问题)我用teleric拉德UploadFiles(ASP.net Web应用程序)..这使用方法<我不能指定服务器以外所需路径问题/ p>
i want to ask how to upload my files outside the server (for security issue) i use teleric Rad UploadFiles (ASP.net web application)..the problem that i cannot specify the required path outside the server using the method
server.map("~\\..\\")
去服务器我得到这个外
to go outside the server i get this
例外
不能使用前导..退出顶级目录上方。
exception Cannot use a leading .. to exit above the top directory.
有没有什么办法来确定服务器之外的路径
is there any way to determine a path outside the server
请帮助..
推荐答案
使用一个完整路径,如C:\\上传,并确保Web进程权限写入该文件夹
Use a full path, like "c:\uploads" and be sure that the web process has permission to write to that folder
这篇关于如何上传服务器asp.net之外的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文