Home > DeveloperSection > Forums > Upload file time out
Ankit Singh

Total Post:341

Posted on    August-26-2014 1:59 AM


 1 Reply(s)
 903  View(s)
Rate this:

I currently have an ASP.NET MVC project that has file uploading and it works great if the user has a good enough connection and their file is of a reasonable size.

The problem I'm running into is that sometimes a user might have a 56k connection (how they can live with it in this day and age, I don't know) or are uploading a larger file or some combination of the two.

I'd like to keep a small timeout for normal pages (90 seconds or so), but allow for a larger timeout for actions where a user is uploading. This is just one action, so I don't mind putting code inside just that singular action rather than a generic solution.

Ultimately, a solution that would automatically increase the timeout if Request.Files.Count > 0 would be the best.

Sumit Kesarwani

Total Post:378

Posted on    August-26-2014 2:49 AM

hi Ankit, 

you could try creating a location in your web.config and set the execution timeout for just your upload URL.

<location path="YourUrl">


    <httpRuntime executionTimeout="9001"/>



Don't want to miss updates? Please click the below button!

Follow MindStick