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

  • Home
  • SEARCH
  • 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 9253667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:16:35+00:00 2026-06-18T11:16:35+00:00

I have an app. that lets you upload multiple files at once through ajax.

  • 0

I have an app. that lets you upload multiple files at once through ajax. It’s meant for big files, but once it gets to 2gb+ I reach errors like this:

[Fri Feb 01 11:22:56 2013] [error] [client x.x.x.x] PHP Fatal error:  Out of memory (allocated 2331770880) (tried to allocate 1165449891 bytes) in Unknown on line 0, referer: ...

In my php.ini, I have these configs:

post_max_size = 53687091200M
upload_max_filesize = 53687091200M
max_input_time = -1
memory_limit = -1
max_execution_time -1
max_file_uploads = 20

As far as I know, this should be sufficient enough to handle 3GB uploads. But on almost every try, I get those errors. I’ve talked to support for my VPS and they said that all looks good and should be able to handle it.

I’ve got an nginx reverse proxy setup which helped a little bit, but not enough. Am I missing something?

Is there a way to take the load off of HTTP with PHP? I tested Java apps and they performed wonderfully, but (unfortunately) I need to keep the UI in-tact.

  • 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-18T11:16:37+00:00Added an answer on June 18, 2026 at 11:16 am

    If you’re uploading very large files, you might want to “proxy” them before passing them to PHP. My experience is that long-lived PHP threads can bomb out unexpectedly, and that PHP can sometimes have trouble with large memory allocation.

    Take a look at nginx’s upload progress module, which will buffer the file to disk before passing it to the upstream server (PHP, in this case) with the added benefit of providing a mechanism for monitoring and reporting on progress.

    If you’re still having problems, you can take PHP out of the equasion completely (as far as managing the upload is concerned) by using the upload module; just dump the file directly to the location you need it on disk and notify PHP of it’s whereabouts.

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

Sidebar

Related Questions

I currently have an iPhone app that lets the users take video, upload it
I have a local web app that lets users attach and view files. Viewing
I have an app that lets users upload documents. The app saves the documents
I have a simple bottle.py app that let's me upload files. Now since those
I have a Django app that lets a user upload a file and does
I have a web app that lets users store files which contain sensitive information.
I have an app that lets the user interact with several forms. I can
I have a web app that lets a client define a daily rate for
I have a simple catalogue app that lets users download product data from an
I have a Rails 3 app that lets users enter comments. I want any

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.