JQuery Uploadify Doesn't Handle Large Images

I am using jQuery Uploadify plugin. It works great for what I'm doing, but when I recently tested it with images larger than 2.5 MB, it failed.

The process ends, states that the file is 100% higher, but the file never ends up in the downloaded folder. The log files indicate that the script cannot find the file.

I checked the parameters of the PHP.ini file, the log files and everything else that I could think of (firebug, etc.). However, this does not bring real results.

Any help? Ideas?

Update: The PHP settings in .ini have been updated, but the PHP information shows:

max_execution_time 30 30 max_file_uploads 20 20 max_input_nesting_level 64 64 max_input_time 60 60 memory_limit 32M 32M 

It takes more than 30 seconds to download an image, could this be a problem?

+4
source share
5 answers

What about PHP upload_max_filesize ? And Apache (assuming you work) LimitRequestBody ?

+2
source

The only thing that comes to mind is that if you resize the image on the server side, the script may die because it takes up more than 32 MB of available memory.

Remember that resizing takes at least

 width x height x 3 (or 4) 

bytes of memory - it makes no sense how compact a compressed JPEG image is.

+2
source

Try setting the sizelimit parameter sizelimit :

  $("#fileInput3").uploadify({ 'uploader' : '/_scripts/uploadify.swf', 'script' : '/_scripts/uploadify.php', 'cancelImg' : '/_images/cancel.png', 'folder' : '/_uploads', 'auto' : true, 'sizeLimit' : 10000000 'multi' : false }); 

Link: http://www.uploadify.com/documentation/

0
source

Have you tried downloading anything other than images to check?

Also, are you sure you pointed to the destination you want to download? The correct permissions?

0
source

I had the same problem and it was pretty easy to figure out from php.log what was going on:

 PHP Warning: POST Content-Length of 13811706 bytes exceeds the limit of 8388608 bytes in Unknown on line 0 

In php.ini, the value "post_max_size" is set, for example, a value. 20M

0
source

All Articles