Click here to Skip to main content
15,907,492 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

1 solution

if (FileUpload1.HasFile)
{
string path = string.Concat(Server.MapPath("~/TempFiles/"), FileUpload2.FileName);
FileUpload2.SaveAs(path);
}
try this
hope this helpfull
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900