Click here to Skip to main content
15,887,821 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have developed a page which can upload files. When I am using it in localhost iis server it works perfect but when I publish it to IIS remote server only can upload 100KB and over of this size the progress would be stacked.

Need your help

Thanks in advance;

What I have tried:

if (file != null && file.ContentLength > 0)
                try
                {
                    string tm = DateTime.Now.Ticks.ToString();
                    file.SaveAs(Server.MapPath("~/Documents/" + tm + file.FileName));
                    string paths = "Documents/" + tm + file.FileName;
Posted
Updated 21-Apr-19 4:04am

1 solution

The target IIS server is probably configured to only allow files of that size. You'll need to reconfigure it

IIS Config[^]
 
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