无法使用文件up-loader控件上传.doc,.rar,.zip文件 [英] Unable to upload .doc, .rar, .zip files using file up-loader control

查看:143
本文介绍了无法使用文件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-loader控件上传.doc,.rar,.zip文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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