如何在jquery VB.NET中上传文件并获取路径 [英] How to upload file and get path in jquery VB.NET

查看:78
本文介绍了如何在jquery VB.NET中上传文件并获取路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友们,



我需要从fileupload控件获取文件路径。我无法从fileupload获取值。它显示C:\ fakepath \< filename>如何获得确切的路径。





我搜索了解决方案,但出于安全考虑,浏览器设置就是这样做的。



我尝试过:



Dear friends,

I need to get filepath from fileupload control. I can't get the value from fileupload. its shows the "C:\fakepath\<filename>" how to get the exact path.


I searched solution but for security purpose browser settings done like that.

What I have tried:

var scanedInv =  document.getElementById('<%= FileUploadScaned.ClientID %>').value;

推荐答案

你已经有了答案,我搜索了解决方案,但出于安全目的,浏览器设置就是这样做的。



浏览器作为沙箱运行,你必须在边界内运行它强制执行。其中一个无法找到用户上传文件的路径。
You already have your answer, "I searched solution but for security purpose browser settings done like that."

The browser operates as a sandbox and you have to operate within the boundaries that it enforces. And one of those is not being able to find the path that a user uploads a file from.


这篇关于如何在jquery VB.NET中上传文件并获取路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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