开发者

Getting file name from FileUpload control - ASP.NET

I need the full client path of the file on the server side so that I can use a library to get text from the document. It appears that due to security reasons, IE8 replaces the f开发者_开发问答ile name with

C:\fakepath\document.doc

Is there a way to get the full path to the file name?


Only if the user enables that setting (disabled by default) in IE8 can you send the full path.

Tools >> Internet Options >> Security tab >> Custom Level (for selected zone) >> Misc section, check Enable for "Include local directory path when uploading files to a server".


No.

For security reasons, IE will not send the path to the server. There is no way to get it.

You might be able to use Flash, though.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜