I am working on an image upload script that is working just fine. The problem that I'm having is that any images that are over 2 MB trigger an error in the $_FILE array and doesn't give it a temp name so the is_uploaded_file($_FILES['file']['tmp_name']) doesn't register.
Any Suggestions?
Images too big...
Moderator: General Moderators
this is max_upload_size and max_post_size limits problem, see
http://www.php.net/manual/en/features.file-upload.php at Related Configurations Note:
http://www.php.net/manual/en/features.file-upload.php at Related Configurations Note:
- raghavan20
- DevNet Resident
- Posts: 1451
- Joined: Sat Jun 11, 2005 6:57 am
- Location: London, UK
- Contact:
This was in the ini_set function manual comments. Does that mean there is really no way to use ini_set to change it. I'm not sure if the host will allow me access to the ini file.Many settings, although they do get set, have no influence in your script.... like upload_max_filesize will get set but uploaded files are already passed to your PHP script before the settings are changed.
Also other settings, set by ini_set(), may be to late because of this (post_max_size etc.).
beware, try settings thru php.ini or .htaccess.