Page 1 of 1

This file is too large to / Error 403: : INVALID IMAGE FILE

Posted: Thu Feb 14, 2013 5:26 pm
by ctopping1
Not sure if these two items are related.

1. I can't upload through the media manager. Getting a "This file is too large to upload" error. I've read a few other forums about making sure the upload max, etc is set in the php.ini file. Both are set to 20M.

2. When I try to upload a file using the JCE editor I'm getting this error: "Error 403: : INVALID IMAGE FILE"

The version of Joomla is 2.5.7
Windows IIS7

Any help would be great. Thanks

Re: This file is too large to / Error 403: : INVALID IMAGE F

Posted: Thu Feb 14, 2013 6:04 pm
by senukexvn
This issue is caused by some entries in the custom php.ini file you are using (in the Joomla! root folder).

You have set a few open_basedir paths for the site, but you do not have an upload_tmp_dir value set - when this is the case PHP uses the system default which is not within the open_basedir restrictions you have set.

Adding an upload_tmp_dir value to the php.ini that is within the open_basedir restrictions seems to fix this problem.

Re: This file is too large to / Error 403: : INVALID IMAGE F

Posted: Thu Feb 14, 2013 6:09 pm
by ctopping1
There is no custom php.ini file in the root of this Joomla site?