FileUpload无法正常工作 [英] FileUpload Not Working

查看:74
本文介绍了FileUpload无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hii,

我正在asp.net中创建一个Web应用程序,我的问题是文件上载在Internet Explorer 8中不起作用吗?为什么?
请帮我,

谢谢

hii,

I am creating a web application in asp.net, and my question is File Upload does not working in internet explorer 8? why?
please helm me,

thank you

推荐答案

我发现一些有用的具有相同标题的链接,必须阅读.

http: //blogs.msdn.com/b/webtopics/archive/2009/07/27/uploading-a-file-using-fileupload-control-fails-in-ie8.aspx

http://forums.asp.net/t/1423030.aspx/1

http://www.prominder.eu/post/2010/05/04/FileUpload-control-error-with-IE8.aspx

结论是通过IE8上传文件时需要设置本地路径.

1.更改服务器端代码中的逻辑-不应依赖于客户端文件路径位置,而应仅使用FileUpload控件的FileName属性.
2.启用IE 8选项,以在客户端上包括Internet区域的本地目录路径.
通过转到工具>转到IE8的安全设置.互联网选项>安全选项卡(第二个)

单击自定义级别",然后在将文件上传到服务器时包括本地目录路径"选项上选中启用".


希望有帮助.
I have found some useful links with the same title, must read it.

http://blogs.msdn.com/b/webtopics/archive/2009/07/27/uploading-a-file-using-fileupload-control-fails-in-ie8.aspx

http://forums.asp.net/t/1423030.aspx/1

http://www.prominder.eu/post/2010/05/04/FileUpload-control-error-with-IE8.aspx

The conclusion is that you need to set local path while uploading file through IE8.

1. Change the logic in the server-side code - It should not be dependent on the client-side file path location and should simply use the FileName property of the FileUpload control.

2. Enable the IE 8 option to include the local directory path for the Internet Zone on the client-side.
Go to Security settings of IE8 by going to Tools > Internet Options > Security Tab(second one)

Click on "Custom Level" and then check "Enable" on the option "Include local directory path when uploading files to server".


Hope this help.


这篇关于FileUpload无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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