正确的文件到客户端系统的临时文件夹中 [英] right file into Client System temp folder

查看:82
本文介绍了正确的文件到客户端系统的临时文件夹中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我试图将文件写入访问我的页面的temp文件夹中,我正在使用System.IO.Path.GetTempPath()它给服务器的temp文件夹路径,我需要Client temp文件夹

Hi,

I had try to write file into temp folder where accessing my page, I''m using System.IO.Path.GetTempPath() its giving server temp folder path, I need Client temp folder

推荐答案

ASP.NET代码无法访问客户端文件系统(谢天谢地).至于服务器端文件系统,则不应,也不能访问该目录.您通常无法访问网站根目录以外的任何内容-这是重要的安全功能.

—SA
ASP.NET code has no access to client file system (thank goodness). As to the server-side file system, you should not and you cannot access this directory; you generally cannot access anything beyond your site''s root directory — this is important security feature.

—SA


这篇关于正确的文件到客户端系统的临时文件夹中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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