File uploads over 4 GB

I want to create an ASP.NET web application that allows you to upload files up to 4 GB in size. How can i achieve this? I would prefer something like a download manager where I can resume, pause, etc.

Is it possible? If so, where do I start? I think asp.net has a 4mb download limit or something like that? I'm not sure.

Please advice.

Greetings

+7
web-applications file-upload
source share
7 answers

You can create files up to 4 GB using ASP.NET using a third-party solution that overrides the built-in query check. This will work in all versions of IIS except for IIS 7 integrated mode, which has a hard limit of 2 GB.

Most bootloaders do not have the ability to pause / resume, so you might be out of luck. Google and see what you can find. You may have to upgrade to Java or ActiveX to get this functionality.

start connecting

I am the author of SlickUpload , one of the first ASP.NET users - it supports downloading up to 4 GB. We do not have Flash, Silverlight or Java support, but currently they have better experience with AJAX, and rich applet interfaces come in future versions.

+1
source share

For this, you probably want to use a third-party component.

You are correct that, by default, standard file upload control will not allow anything beyond 4 MB. You can change this value using the maxRequestLength attribute of the maxRequestLength configuration httpRuntime in web.config . You also need to change the executionTimeout attribute. See here for more details.

But up to 4 GB? I doubt that you will have much success with standard file upload control. If the connection fails, everything will end and they will start again. You probably want something that can support the connection, and provide a progress bar, etc.

Look for products like FileUp or EasyAlgo . A google search should find you a lot.

+3
source share

You can always implement the file upload yourself, it really is not so difficult if the .NET utility has some limit encoded in it (although it really should not be).

As for some kind of download manager that you can resume, etc., this is simply not possible, since cooperation with the client is required, and modern browser loading functions are simply not β€œsmart”.

You may be able to create a small Java applet that you can embed in your page to handle the client side of the conversation, but you need to sign the applet and you also need custom server logic to handle the backend.

+1
source share

In addition to server restrictions, browsers also limit the size of the file that can be sent to POST (slightly outdated: http://www.motobit.com/help/scptutl/pa98.htm ). That's why many people implement a solution based on Flash or Java, which can so load "out of range" using a direct channel on the server.

+1
source share

The limit in .NET 2.0 is 2 GB.

If 3.5, consider this in your web.config, if you have one. it sets the maximum file size and timeout:

 <httpRuntime maxRequestLength="4194304" executionTimeout="2400"/> 

Of course, uploading a file to a website can be dangerous if you are not shy, so like other posters, consider using an existing, proven one, at least to find out all the caveats. Good luck.

+1
source share

The file upload limit is usually determined by the server configuration file. Sorry, I'm a PHP guy, so I'm not sure about asp.net, but for our server we have a php.ini file with upload_max_filesize that sets a valid total size.

For the download manager, you will most likely need something built with java net beans, a java plugin that you can purchase, or swfuploader .

We have used swfuploader with great success on many sites.

0
source share

they used the Flex client on filemail.com, although the site is based on asp.net. Therefore, in general, I believe that "everyone" uses the client-active-x task for this.

0
source share

All Articles