faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

3 of 8 people (38%) answered Yes
Recently 3 of 8 people (38%) answered Yes

Entry

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. 
NOTE:
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.
http://www.tantofa.com
http://www.fantofa.com
http://www.mantofa.com
http://www.tanpola.com
http://www.tampola.com
http://www.yamot.com
http://www.mozmar.com
http://www.templatestemp.com