Results 1 to 6 of 6
  1. #1
    Lounger
    Join Date
    Apr 2010
    Location
    Alabama
    Posts
    44
    Thanks
    1
    Thanked 2 Times in 2 Posts

    Why can I not download a file larger than 1.0 GB using my browser?

    I have attempted to download a 2.5 GB ZIP backup file from my hosting provider and the size of the resultant downloaded file is always around 1.0 GB. The download just stops. I see no errors displayed. The file is, of course, corrupt since it did not finish loading. I have used the latest versions of Firefox, Chrome and IE with the same result. My hosting provider and my ISP state they do not place any limits on the size of downloaded files. I have downloaded this size file using this machine from the same hosting provider for the past 3 years with no problems. The last time I performed this download was in December of 2014 (worked fine).

    I am running an Apache server on my WIN7 machine so I used the following script to see if I can simulate the problem locally (all files are located on the same computer). The same results were observed (size limited to around 1.0 GB) so it can't be my hosting provider or my ISP.

    PHP Code:
    <?php
    // The source file backup-tue-mar-24-14_38_34-2015.zip is 2,488,232 KB
    // The destination file george.zip will be anywhere from 721,771 KB to 1,033,857 KB

    $file 'D:\My_Backup\2015-03-22\backup-tue-mar-24-14_38_34-2015.zip';

        
    header('Content-Description: File Transfer');
        
    header('Content-Type: application/octet-stream');
        
    header('Content-Disposition: attachment; filename='"george.zip");
        
    header('Expires: 0');
        
    header('Cache-Control: must-revalidate');
        
    header('Pragma: public');

    $file_handle fopen($file"r") or exit("Unable to open file ($file)");

    while (!
    feof($file_handle)) {
      
    $line fgets($file_handle16384);
      echo 
    $line;
    }

    ?>
    I used SFTP to download the same file from my hosting provider and it downloaded properly.

    I am running the latest version of WIN7 with an Intel i7 CPU (64 bit) with 12.0 GB of RAM.

    Any ideas on how to solve this problem? Since it worked in the past, it must have been some WIN7 update that caused the problem.

  2. #2
    Silver Lounger
    Join Date
    Mar 2014
    Location
    Forever West
    Posts
    2,076
    Thanks
    0
    Thanked 259 Times in 248 Posts
    As a diagnostic can you download any other large file from a different Web site? I'd try this .iso file at about 1.5GB:
    http://downloads.solydxk.com/solydk/solydk64_201506.iso
    This one is over 2GB:
    http://calculate.mirror.garr.it/mirr...6.2-x86_64.iso

    Is the problem only with .zip files? A possibility could be a corrupted source file on the server.

    I'd be willing to try your download if you'd like but will be gone lunchtime for about 7 hours tomorrow.

  3. #3
    Lounger
    Join Date
    Apr 2010
    Location
    Alabama
    Posts
    44
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Thanks for the sources for the large files. Here are the results:

    The 1.5 GB file downloaded completely in 11 minutes.

    The 2.0 GB file stopped at 651,979 KB. It had been downloading for 7 minutes. I'll repeat the 2.0 GB file and see if I get the same results.

    My original problem can't be a corrupt source file on the server because I can download it using SFTP and then successfully extract the files. Also, after downloading it using SFTP, I loaded it on my local (Apache) server and got the same results.

    Thanks for the offer to download the ZIP file from my server but I can't because the ZIP file contains some private information.

  4. #4
    Lounger
    Join Date
    Apr 2010
    Location
    Alabama
    Posts
    44
    Thanks
    1
    Thanked 2 Times in 2 Posts
    I downloaded the 2.2 GB file two more times and both times the download completed properly. The previous failure must have been a fluke. I did notice a difference between the downloads of the ISO files from the servers you recommended and the download from my hosting provider and the test on my local server. On the servers you recommended, the browser client knows the size of the file being downloaded and shows progress of ( xx minutes remaining, 0.5 GB of 2.5 GB). On my hosting provider and my test setup the browser client does not know the size of the file being downloaded. It will just display (time remaining unknown, 0.5 GB). I modified my test setup and used a different method for the download and now the 2.5 GB zip file downloads properly (on my local test server) and displays the time remaining.

    I'll run the same test from my hosting provider's server tomorrow to see how that works. It will take me a quite a while to upload a 2.5 GB file to my hosting provider account as my upload speed is limited to 6.0 Mbps.

  5. #5
    jwoods
    Guest
    Cross-posted in this forum as well...

    http://stackoverflow.com/questions/3...ing-my-browser

  6. The Following User Says Thank You to jwoods For This Useful Post:

    Fascist Nation (2015-06-13)

  7. #6
    Lounger
    Join Date
    Apr 2010
    Location
    Alabama
    Posts
    44
    Thanks
    1
    Thanked 2 Times in 2 Posts
    I have verified if I access the 2.5 GB file directly (www.mydomain.com/zip_test.zip) at my hosting provider then I can successfully download a 2.5 GB file. The correct file size is shown in the progress section on the browser.

    I did this as a test. Unfortunately I cannot directly access the backup (ZIP) file at my hosting provider. They possibly use some type of program to dynamically generate the file on the fly. I'll need to work with my hosting provider on the problem.

    Does anyone know if it is a fact that the download will terminate after a transfer of about 1.0 GB if the browser is not aware of the size of the file. Files less than 1.0 GB will completely download even if the browser is not aware of the file size.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •