Download open source file without timeout in IIS6 with ASP, ASP.NET 2.0 or PHP5

I use a cross-platform cross-browser way to upload files, so there is no timeout. The download is not necessarily huge - some just take a long time to load due to a slow connection to the bootloader, but the server is all the same.

I heard that there are ways to upload files to pieces so that somehow the server decides not to overload the download. After searching all that I see, these are proprietary download helpers and Java and Flash widgets (SWFUpload) that are not cross-platform, are not loaded into chunks, or are not free.

I would like to do this on any of these platforms (ASP, ASP.NET 2.0 or PHP5), although I am not very good at all this class .NET / controller / project / module / visual studio / compile / etc, so it’s useful some running full project that works on .NET 2.0. PHP and ASP, which I can assume, will be more straightforward.

If I haven’t completely missed something that I suspect / hope so, reasonable network downloads are hard work in any language or platform.

So my question is: how can I download a web browser, cross-platform so that they do not timeout using free software? Is it possible at all?

+4
source share
3 answers

I assume that the solution you are really looking for is to increase control over the server. For example, IIS has a timeout parameter in addition to any settings that you provide in web.config or php.ini. If php is running in fast cgi mode, you also have a quick cgi setup.

Then you can set the appropriate file size, memory and timeout parameters in the php.ini / web.config file:

php.ini - http://www.radinks.com/upload/config.php

web.config -

<httpRuntime executionTimeout="1000" maxRequestLength="400000"> 

Asp.net provides the ability to create html modules that provide some slicker download controls (asp.net), such as multiple downloads directly to disk (less server memory usage) and download progress controls, most of which are commercial, though.

+2
source

Regardless of which language will work with the file after the download is complete, the actual download is processed by the HTTP server (Apache, IIS, etc.). The way I saw "progress bars" or other graphical downloads made in Flash is that there is an AJAX call made in the second script that loads the file (which blocks this thread until the download is completed), and the first script checks the size file of the incoming temporary file by a certain percentage.

If you load server timeouts at boot time, the problem is most likely due to the configuration of your HTTP server (Apache / IIS) and the connection opening log will not be enough. If you tried to configure the PHP file upload system and received PHP error messages, it is likely that the values ​​of upload_max_filesize , memory_limit , or post_max_size incorrectly set in PHP.ini (see PHP message about uploading files to the pitfals file ).

+1
source

Perhaps you can look at the source of Wordpress? They have a “standard” file downloader and a flash file downloader.

However, writing something that pieces something into smaller bits and then back it up again is hard work.

A solution with a channel tape would be to split it into smaller bits, load these bits, and unpack it on the server.

0
source

All Articles