Hi all. I have a problem with a document uploader created by my web developer guy - I'm the sysadmin guy. We have quite a few uploaders on various web sites and they all work well, including several that are built on the same Apache/PHP base as the problematic one.
On the problem one, any file over about 10MB (we haven't narrowed it down more precisely yet) won't upload. Any other file uploads and returns a nice page saying "successfully uploaded" etc. Large files just pause for a few moments and the browser stays on the upload page. I have not been able to find anything to help me track this down. I see a 200 response code in the Apache log file. With problem files no entries appear to be made in the MySource error.log and system.log. I am not sure how to proceed as I can't find any clues and wondered whether someone might be able to suggest a debugging technique that will help me progress?
I should also note as mentioned above the Apache PHP base is the same as for other working sites, and the upload_max_filesize parameter in PHP is set to accept 25MB files.
Many thanks.
Ivan
Do you have any details about how the image uploaded was implemented? Is it, for example, an asset builder?
Also, Matrix has it's own file size limit, which you can set in the System Configuration -> Global Preferences screen. Just make sure it is reporting the right size.
Greg, thanks for getting back to me. I believe it is an asset builder because when you go to the details page it says "Asset Builder page" as the first thing in the breadcrumbs.
I checked the Global Preferences and noted the limit was set to 20M, but it was unable to report the limit of the system and just said "BYTES". I set the MySource limit to 25M and it reported that this exceeded the system limit and that PHP would henceforth control the limit, which seemed fine to me, even though I thought I had set them the same, not larger than the system limit.
However, none of this had any effect on the uploader page which still doesn't work for the same large file. If you have any thoughts on further debugging I would be very grateful.
Thanks.
Ivan
[quote]Do you have any details about how the image uploaded was implemented? Is it, for example, an asset builder?
Also, Matrix has it's own file size limit, which you can set in the System Configuration -> Global Preferences screen. Just make sure it is reporting the right size.[/quote]
It would be creating a File asset, do you would need to debug the PHP code to see if PHP has uploaded the file correctly.
It might be easier to go into the Admin interface and create a File asset manually. When you upload your 10M file, Matrix may report an error. If so, the backtrace linked to the error may provide some clues.
Greg, I'm going to work with my web developer guy to follow up your suggestions - might take a day or so to track him down.
Thanks for your help so far.
Hey there,
Check your post_max_size directive in php.ini - The default is typically 8M, but you'll need this to be in accordance with upload_max_filesize. Don't set this too high though (I can replicate the Matrix screen displaying BYTES by setting this directive to 1024M).
Cheers,
Murray
Murray, you hit the nail on the head there. I have never had to modify that parameter before but the uploader was definitely using a POST and my post_max_size was set to 8M. Increasing this value solved the problem.
Thanks very much - and also to Greg for giving me some tips on things to try out yesterday.
Ivan
Good work Murray.