Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uploading a 500MB+ file through an ASP.NET web application

My web application allows authorised users to upload videos using the ASP.NET WebForms FileUpload web control, which in the past have been around 100-200MB. I had to obviously make some changes to the web.config so that files of this size could be uploaded.

However, the authorised users now want to upload video files which are 500MB+

The maxAllowedContentLength has now been set to 629145600 (600MB).

However, when uploading the videos, after a while the page responds with:

Page not found

This only happens with large videos, so I know this issue has something to do with the file size.

Why is this happening? And also, should I really be increasing the limit to 500MB+? Is there a better way of getting such large files onto the web server?

like image 947
Curtis Avatar asked Oct 07 '22 23:10

Curtis


1 Answers

Check out this blog post by Jon Galloway, its a bit old but still relevant:
Large file uploads in ASP.NET

Its got answers to your questions about:

  • page not found
  • setting the correct maxAllowedContentLength

There's recommendations for various controls you can use, both free and commercial.
I've used the flash control and it worked great.

Alternative Solution
Provide an FTP area for each user to upload too.
It allows users:

  • easily batch upload many files (harder in the browser)
  • takes advantage of resume on disconnect

Then you provide a GUI for the user, to consume the files.

like image 121
Ralph Willgoss Avatar answered Oct 11 '22 12:10

Ralph Willgoss