Click here to Skip to main content
15,881,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to upload file with size more than 10GB+ and there is multiple files that i want to upload at the server.

I made some changes in Web.config to upload large files.

What I have tried:

<system.web>
<compilation debug="true" targetframework="4.5">
<httpruntime executiontimeout="6000000" maxrequestlength="2147483647">


<system.webserver>
<security>
<requestfiltering>
<requestlimits maxallowedcontentlength="2147483647">




But it only support the file size up to 2GB. I do too much research but I can not get anything that help me to upload 10GB+ file size.

I read some article that said that the maximum file size limit is 2GB

Maximum value of maxRequestLength?

IIS 7 httpruntime maxRequestLength limit of 2097151

https://blogs.msdn.microsoft.com/prashant_upadhyay/2011/07/12/large-file-upload-issue-in-asp-net/

I found some hacks that I slice the file at the client side (browser) and upload that all the slice at the server and after that i merge all that slice to single file.

But this may be wrong idea to do that, If some slice of file is failed to upload or missed so file may be corrupted.

I don't want to implement the Slice and Upload and Merge file technique to upload large file.

There is any another way to do the Upload Larger files (10GB+ size) with the ASP.NET and C#.

Thanks.
Posted
Updated 2-Aug-16 4:04am

1 solution

Uploading very large file might not be reliable for all user anyway so doing slice would be a good idea. Obviously, you would need so code to ensure you got all slices (and that they are not corrupted) and resend missing or corrupted slices. In any case, you would not want to use default handling for such large files as it might take hours to upload a file and you would need to send some feedback to the user.

Jon Galloway - Large file uploads in ASP.NET[^]

HTML Large File Uploader[^]

You might also consider creating a standalone application to let your user send big files. You would then be able to give them better feedback on progress and maybe allows some tuning for best performance and possibly also implement pausing the upload and restart partial upload after a crash or reboot of the computer.
 
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