Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8900803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:11:19+00:00 2026-06-15T01:11:19+00:00

This problem seems directly related to the infamous 2GB limit and I’m not sure

  • 0

This problem seems directly related to the infamous 2GB limit and I’m not sure at this atge if its a 32bit PHP issue.
I’ve seen the comments related to HTTP not being designed for such large files.
However, I would rather exhaust this direction before deciding on any fundamental change to what has been proven to work so far.
As the title suggest I need to upload >2GB files, largest so far 3.8GB.
I have a form built using jQuery-file-upload which has had no problems sending any files (all less <2GB) until these large ones started.
The 3.8GB one takes maybe 5 minutes to upload from File-Upload and the progress bar completes to 100%.
However the reported error after upload is a type 1 which suggests the file size limit has been breached.

If I monitor the disk usage on the server during upload it will have the following sample properties:
Before upload the disk is 30% used, as the upload continues this usage increases, 31%,32%….45%,46%etc.
However at around the 2GB point the disk usage drops back to 30% while the client/browser File-Upload continues.
When the servers disk usage stops increasing the client may only be at 60% of the upload.
Yet the client still continues to 100% but isn’t being accepted by the server as the disk status never moves off 30%.

I’m running 64Bit Ubuntu (latest) with Apache/2.2.22 (Ubuntu) and PHP Version 5.3.10-1ubuntu3.2
After many days on and off searching for a solution I still cannot get the 3.8GB file to upload after changing so many settings.
I’ll list the sort of changes below but at this stage I think it may be a 32bit PHP issue so if anyone can suggest a link worth following or solution worth trying I’d appreciate it.

In Apache2 I’ve set the following:

- apache2.conf I've set Timeout to 900
- httpd.conf I've set LimitRequestBody to 0
- .htaccess in the file upload directory I've set:
    - LimitRequestBody to 4939212390
    - php_value upload_max_filesize 4831838208
    - php_value post_max_size 4939212390

In php.ini I’ve set the following:

- UPLOAD_MAX_FILESIZE 4831838208
- POST_MAX_SIZE 4939212390
- max_execution_time 120
- max_input_time 60
- memory_limit 128M

If I run the following on the server it would seem the PHP does not have a 32bit issue but I’m not sure at this stage.

php -r "echo PHP_INT_MAX;"
9223372036854775807

As I mentioned any ideas would be greatly appreciated.

UPDATE:

Have solved this issue, so thanks to @BogdanBurim for suggesting the back to basics approach:

I have managed to upload a 3.8 GB file over HTTP with the following settings:

In Apache2 I’ve set the following:

- apache2.conf I've set Timeout to 900
- httpd.conf I've set LimitRequestBody to 0
- .htaccess in the file upload directory I've set:
    - LimitRequestBody to 0
    - php_value upload_max_filesize 0
    - php_value post_max_size 4939212390
- .htaccess in the php temp directory (in my case its /tmp/) I've set:
    - LimitRequestBody to 0
    - php_value upload_max_filesize 0
    - php_value post_max_size 4939212390

In php.ini I’ve set the following:

- UPLOAD_MAX_FILESIZE 0
- POST_MAX_SIZE 4939212390
- max_execution_time 120
- max_input_time 60
- memory_limit 128M

The only other important part of this solution was having to remove the MAX_FILE_SIZE, HTML from the upload form:

<input type="hidden" name="MAX_FILE_SIZE" value="4939212390" />

Having this set continually caused a PHP type 2 error, so php couldn’t handle the greater than 32bit integer that is set.
Removing it caused PHP type 1 errors until I changed the UPLOAD_MAX_FILESIZE to 0 everywhere and hey presto it now works!!!!

http://php.net/manual/en/features.file-upload.errors.php

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T01:11:20+00:00Added an answer on June 15, 2026 at 1:11 am

    Have solved this issue, so thanks to @BogdanBurim for suggesting the back to basics approach:

    I have managed to upload a 3.8 GB file over HTTP with the following settings:

    In Apache2 I’ve set the following:

    - apache2.conf I've set Timeout to 900
    - httpd.conf I've set LimitRequestBody to 0
    - .htaccess in the file upload directory I've set:
        - LimitRequestBody to 0
        - php_value upload_max_filesize 0
        - php_value post_max_size 4939212390
    - .htaccess in the php temp directory (in my case its /tmp/) I've set:
        - LimitRequestBody to 0
        - php_value upload_max_filesize 0
        - php_value post_max_size 4939212390
    

    In php.ini I’ve set the following:

    - UPLOAD_MAX_FILESIZE 0
    - POST_MAX_SIZE 4939212390
    - max_execution_time 120
    - max_input_time 60
    - memory_limit 128M
    

    The only other important part of this solution was having to remove the MAX_FILE_SIZE, HTML from the upload form:

    <input type="hidden" name="MAX_FILE_SIZE" value="4939212390" />
    

    Having this set continually caused a PHP type 2 error, so php couldn’t handle the greater than 32bit integer that is set.
    Removing it caused PHP type 1 errors until I changed the UPLOAD_MAX_FILESIZE to 0 everywhere and hey presto it now works!!!!

    http://php.net/manual/en/features.file-upload.errors.php

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This seems to be a problem related to Safari only. I've tried 4 on
This problem seems very simple to me, but I've been unable to fix it,
I am struggling for days to solve this problem and it seems i cant
My problem seems to be this: heap data allocated by one thread (that later
Seems that This will be an easy question for you but this problem is
Hi i encountered this problem whereby when i initialized my String[], there seems to
I'm really suprised I haven't run into this problem before, but it seems that
Seems like just yesterday I had this same problem with Play! v1. After trying
I have an issue that seems like very flaky behavour, is this a problem
This one seems to be a simple problem, but I can't make it work

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.