File upload help!
I'm having a bit of a problem with uploading files. When uploading any images or set of images above a certain resolution I'm getting file upload error 314.
I've changed the php.ini file and set the max file size to 8mb and the post max file size is set to 128mb - much higher than the photo(s) I am trying to upload which are around 4-5mb. The file size does not seem to be the issue though - the only thing that seems to fix the issue is resizing them to around 1000px. Could somebody shed any light on what's going on? Is there a maximum dimension limit setting I am missing somewhere?
Many thanks in advance!
I know you said you changed the php.ini file to allow larger file sizes but have you checked that the server is actually doing what you asked? Have you put up an info.php file and got confirmation back from the server of the limits that are set. You may need an apache restart after you make a change to the php.ini on some servers anyway.
Also what file type are you uploading? Are they accepted in the file type list, again a weak one due to the size issue but worth a check.
Check the file permissions too but again this pesky file size issue means the either all should work or not work.
Have you tried using the incoming folder for large file types? That is my best guess at a solution, upload the large files to the incoming folder the add them to the file manager that way.
Post back if you want to know in more detail how to do this one.
Yes I am certain the php.ini limits have been set. I've checked in the environment settings in Concrete5 & the screenshot I attached shows the set limits above the Upload file box too.
File type is definitely accepted (jpeg) as it is allowing me to upload jpegs with smaller dimensions (around 1000px width) but not much larger (regardless of file size).
I have not tried the incoming folder, thanks for that suggestion, however this doesn't help as far as the client is concerned if they want to upload a large file in future as they won't have access to that folder.
You may have seen this already but it is an interesting thread about a similar problem.
I can't think of anything in C5 that is blocking the upload, my guess is that it is a server/php issue but it is really impossible to say for sure.
I created a demo concrete5 site using concrete5.org. The demo site accepted my file. I gather it has to be a PHP/Server issue.
But, my php.ini file has been changed. The is the current setting:
Upload Max: 128M. Post Max: 16M
It is reflected in the Environment Info and on when you open the window to upload multiple images.
So I want to say I can rule out a PHP error. So what could I change on the server to prevent this from happening?
I have posted an answer for you on Stack Overflow but here it is again just in case:
Both Apache and php might be limiting how much data you can upload through an http request (different from ftp)
You already made changes to your PHP.ini but I have to point out that it is not max_post_size but post_max_size that should be used.
On the other hand, Apache has a LimitRequestBody directive (http://httpd.apache.org/docs/2.0/mod/core.html#limitrequestbody) That directive allows to set a limit to the size of http requests.
Of course if you are on a shared server you might have problems controlling that but it's worth asking your host about it.