Click here to Skip to main content
15,885,767 members
Please Sign up or sign in to vote.
3.33/5 (2 votes)
See more:
Hello Friends,

Can someone please provide me an idea that how to upload a huge file suppose 6GB in asp.net web application? What will be the best way to do it without making application crash or processing for eternity? We cannot use any third party controls. What will be the best way? Can we break the file in chunks and then send then how will be reorder the file and how would be break it even? Kindly advice.
Posted
Comments
ZurdoDev 1-Apr-15 16:55pm    
There are 3rd party controls to do that but if you can't then writing your own code will be a huge pain.

Otherwise, do ftp.

To enable large file uploads you need to change the value of the following attributes on the system.web/httpRuntime configuration element:

maxRequestLength: Specifies the limit for the input stream buffering threshold in KB and allows you to control the allowed total size of the upload. Anything bigger than that will result in the default for the framework "Page not found" error.
ExecutionTimeout: Specifies the maximum number of seconds for which a request is allowed to be executed before being automatically shut down by ASP.NET – the default time is 110 seconds. If the request takes longer to be executed, an exception will be thrown.
maxAllowedContentLength (IIS 7) - specifies the maximum length of content in a request supported by IIS. By default it restricts the content length to 30,000,000 bytes.
Refer this link:http://blogs.telerik.com/aspnet-ajax/posts/13-07-15/upload-large-files-asp-net-radasyncupload[^]
 
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