I've a problem with php file upload.
In my php.ini 'upload_max_filesize' is set to 4mb.
When i try to upload a file bigger than that I never get the UPLOAD_ERR_INI_SIZE error as expected, but the page show the form again without any information about the file ($_FILES is empty).
What's the problem? Am I doing something wrong?
-
With files below 4mb everything is ok?Silver Light– Silver Light2010-11-15 11:04:40 +00:00Commented Nov 15, 2010 at 11:04
-
yes, below 4mb everything is ok.AldoB– AldoB2010-11-15 11:24:23 +00:00Commented Nov 15, 2010 at 11:24
Add a comment
|
5 Answers
Check these setting in your php.ini also: post_max_size, upload_max_filesize and memory_limit in php.ini. post_max_size should be greater than upload_max_size.
and if these does not solve problem then check here for more details: http://www.satya-weblog.com/2007/05/php-file-upload-and-download-script.html
1 Comment
Marc B
Don't forget the webserver itself, e.g. Apache's LimitRequestBody
See my answer to a similar question; It sounds like the same issue:
Why dosen't this upload script work with mp4s, mpegs (and maybe any /large/ files)?