Jump to content

Upload multiple images stops at 20


phppup

Recommended Posts

I created scripting to upload multiple images simultaneously.

The files sizes allowed for upload are 2 MB (or larger) and are then resized to approx 300kb each.

In testing, I have discovered that the uploading terminated after 20 images.

Is there a variable that needs to be re-defined in order to easily allow uploads of several hundred images?

PS: I've seen several conflicting examples for defining max_file_size. What is the correct math to define this parameter?

Link to comment
Share on other sites

There are multiple settings that affect how much data you can POST to a script, which will affect how many uploads you can perform.

post_max_size - Limits the total size of the request so all your images combined must be less than this value.

upload_max_filesize - Limits the size of individual files.

max_file_uploads - Limits how many file inputs can be uploaded.

max_input_vars - Limits how many form fields can be submitted in total.

 

post_max_size needs to be at least as large as upload_max_filesize.  I usually set it to upload_max_filesize + 1MB, the extra MB allows for overhead and extra form fields.  max_input_vars needs to be at least as much as max_file_uploads.  It is by default pretty high.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.