tags:

views:

70

answers:

4

I am using jQuery Uploadify plug-in. It works great for what I'm doing, but when I recently tested it with images over 2.5mb, it fails.

The process completes, states that the file is 100% uplaoded, but the file never arrives in the uploaded folder. The log files say that the script can't find the file.

I checked the PHP.ini file settings, the log files and everything else I could think of (firebug, etc). However, this is not coming up with real results.

Any help? Ideas?

Update: The PHP settings in .ini were updated, but PHP info 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

An image takes well over 30 seconds to upload, could this be the problem?

+2  A: 

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

Remember, resizing takes at least

width x height x 3 (or 4)

bytes of memory - it's meaningless how small the compressed JPEG image is.

Pekka
That's what I thought too, but there are two operations: First, it uploads the file to /uploads/, Secondly it sends it to an image resizing script. It never arrives in /uploads/.
gamerzfuse
@gamerz maybe write into a log file or send a debug E-Mail just to see whether the script gets called at all? (Probably not) Also, what does your callback on JS side look like? Are you catching error codes and stuff?... I'm off now for the night, good luck!
Pekka
+2  A: 

What about PHP's upload_max_filesize? And Apache's (assuming that's what you're running) LimitRequestBody?

Marc B
Yeah, but 2.5 MB? Sounds really odd... I agree they are still worth checking out though, if just to make sure.
Pekka
A: 

Try explicitly setting a sizelimit:

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

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

DMin
Tried this beforehand. It is currently set to 20mb, but I had it at 200mb and same problem.
gamerzfuse
A: 

Did you try uploading anything other than images to check?

Also, are you sure that you pointing to the right upload destination? Correct permissions?

Laheab
I have uploaded smaller images successfully, but I will test a larger PDF file or similiar right now.
gamerzfuse