获取客户端上传文件的完整路径 [英] Get Complete Path of Client uploaded files

查看:137
本文介绍了获取客户端上传文件的完整路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人可以告诉我如何通过文件上载器提供的(C:\ Users \ Documents \ ABC.mp3)获取客户端上载文件的完整路径的任何其他方式来获取客户端完整路径''在asp.net/C#和所有浏览器中上传的文件???????

Is anyone there who can tell me how can i get complete path of files uploaded by client as (C:\Users\Documents\ABC.mp3) given by File Uploader control any other way to get complete path of client''s uploaded files in asp.net/C# and in all browsers???????

推荐答案

不.服务器唯一可以看到的是文件名和实际的文件流.正如gladiatron和aspnet_regiis在评论中所说,这是浏览器的安全问题.
Nope. The only thing the server can see is the filename and the actual filestream. As gladiatron and aspnet_regiis say in their comments, this is a browser security issue.


这篇关于获取客户端上传文件的完整路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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