无法使用文件up

编程入门 行业动态 更新时间:2024-10-27 08:37:43
本文介绍了无法使用文件up-loader控件上传.doc,.rar,.zip文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

无法使用文件上传程序控件上传.doc,.rar,.zip文件WHERE AS .png,.jpg,.gif和.pdf很容易加载。 .doc,.rar,.zip文件正在被选中,但是当我提交表单时,它显示此网页不可用并带有更多按钮。单击更多时,它显示以下内容: 与localhost的连接中断。 重新加载此网页。 按重新加载按钮重新提交加载页面所需的数据。 检查您的互联网连接。 检查所有电缆并重新启动您可能正在使用的任何路由器,调制解调器或其他网络设备。 允许Chrome访问防火墙或防病毒设置中的网络。 如果是已被列为允许访问网络的程序,尝试将其从列表中删除并再次添加。 如果您使用代理服务器... 检查您的代理设置或联系您的网络管理员以确保代理服务器正常工作。如果您认为自己不应该使用代理服务器:请转到Chrome菜单>设置>显示高级设置...>更改代理设置...> LAN设置并取消选择为LAN使用代理服务器。 错误代码:ERR_CONNECTION_RESET 请帮助我知道我哪里出错了。 谢谢 IB

Unable to upload .doc, .rar, .zip files using file up-loader control WHERE AS .png, .jpg, .gif and .pdf are getting loaded easily. The .doc, .rar, .zip file are getting selected but the moment I am submitting the form it is showing "This webpage is not available" with a "More" button. On clicking "More" it is showing the following: The connection to localhost was interrupted. Reload this webpage. Press the reload button to resubmit the data needed to load the page. Check your Internet connection. Check any cables and reboot any routers, modems, or other network devices you may be using. Allow Chrome to access the network in your firewall or antivirus settings. If it is already listed as a program allowed to access the network, try removing it from the list and adding it again. If you use a proxy server... Check your proxy settings or contact your network administrator to make sure the proxy server is working. If you don't believe you should be using a proxy server: Go to the Chrome menu > Settings > Show advanced settings... > Change proxy settings... > LAN Settings and deselect "Use a proxy server for your LAN". Error code: ERR_CONNECTION_RESET Please help to know where i am going wrong. Thanks IB

推荐答案

if(FileUpload1.HasFile) { string path = string .Concat(Server.MapPath("〜/ TempFiles /"),FileUpload2.FileName); FileUpload2.SaveAs(path); } 试试这个 希望这个有用的 if (FileUpload1.HasFile) { string path = string.Concat(Server.MapPath("~/TempFiles/"), FileUpload2.FileName); FileUpload2.SaveAs(path); } try this hope this helpfull

更多推荐

无法使用文件up

本文发布于:2023-11-06 13:18:21,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1563795.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!