Is there a limitation to the file size when using move_uploaded_file? Returns false with files>2mb..
Mar 19th, 2008 22:40
ha mo, Dawit Abraham, jeango decoster,
Check the 'upload_max_filesize' configuration directive in php.ini,
which restricts maximum size of an uploaded file (2Mb by default).
When an integer is used, the value is measured in bytes. You may also
use shorthand notation. The available options are K (for Kilobytes), M
(for Megabytes) and G (for Gigabytes; available since PHP 5.1.0),
these are case insensitive. Anything else assumes bytes.
Also check post_max_size integer which sets max size of post data
allowed. This setting also affects file upload. To upload large files,
this value must be larger than upload_max_filesize.
If memory limit is enabled by your configure script, memory_limit also
affects file uploading. Generally speaking, memory_limit should be
larger than post_max_size.
If your PHP applications are running on a shared server, it's unlikely
that you will have access to the master php.ini configuration file.