Cant upload files larger then server max file upload size limit.

Comments

cyberwolf’s picture

Version: » 7.x-1.0

It indeed seems that the the sum of the files' sizes can't exceed the maximum file size which I guess is inherent to the way the HTML 5 multiple attribute works, as it will upload all files in one request. Can somebody confirm this?

I get the error "An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (8 MB) that this server supports.". However, all my previously uploaded images disappeared as well on the page. That I feel is an issue that should be addressed :)

cweagans’s picture

Project: » Multiupload Filefield Widget
Taxoman’s picture

Title: Batch Upload? » Batch Upload to stay below the maximum file size limit
Version: 7.x-1.0 » 7.x-1.x-dev
Priority: Minor » Major

IMO, this is "major" as such a problem almost defeats the purpose of this module.
The module should automatically figure out how to group files to stay below the limit and do the uploads in several batches if needed.

rar9’s picture

Version: 7.x-1.x-dev » 7.x-1.0

+1 this really needs fixing.

JoshOrndorff’s picture

Version: 7.x-1.0 » 7.x-1.13
Issue summary: View changes
Issue tags: +Batch API

Just updating the tags and metadata and noting that I would love to see this too.

btw, thanks for the great module; I'm super glad to finally be able to uplad all files at once.

-Josh

mario.awad’s picture

I would love to see this implemented too.

Also, it looks like there's a file number limit or something else happening. When I try to upload 87 images, each around 300kb, and my server maximum file size limit set to 128mb (on development machine), I still get errors. When I try to upload 20 or 30 images at once, I can upload them all without any error.

The error I get:

Warning: Cannot modify header information - headers already sent in drupal_send_headers() (line 1221 of \includes\bootstrap.inc).

czigor’s picture

@mario.awad: You might want to raise the max_input_vars php variable value.

mario.awad’s picture

@czigor thanks for the suggestion. I did my tests and max_input_vars is not related to the issue so changing it doesn't help.

Here's what I did.

PHP defaults to:
max_input_vars = 1000

I set:
max_input_vars = 10000

I still have the same issue at around the same number of images uploaded as previously discussed above.

Cheers.

toamit’s picture

It would be nice to add an option for max number of files that should be uploaded in one POST. Perhaps a simple option may be to break up the upload into several POST, this way only one file is uploaded per POST which will respect max number of files and the max file size.

Anonymous’s picture

For the max_input_vars, how do I know what to set the max_input_vars to based on how many images I'd like a user to be able to upload at one time? For instance, is there one variable generated per file? How does that work?

joelpittet’s picture

That may be a question for stackoverflow

phem’s picture

There are three setting in php.ini to take into account:

upload_max_filesize = 2M <- this is the maximum for a single file
post_max_size = 8M <- this is the maximum of all files
max_file_uploads = 20 <- maximum number of files that can be uploaded

In the above case you will be able to upload 4 files with a size of 2M each, or 20 files with 0.4M each.

(Sorry if this seams trivial, but it wasn't for me and this is where I looked and didn't found an answer.)