Reputation: 5557
I Cant upload file of size greater than 2 MB on my PHP server , what will be issue can u please help, although in my PHP code i haven't put any limit in my PHP code
Please help I have used Apache
Thanks in adv
Upvotes: 1
Views: 2388
Reputation: 13549
The default php installation has an upload file size limit of 2MBs. This link explains all the details.
In Linux with apache2 you can find this file in:
/etc/php5/apache2/php.ini OR
/etc/php.ini
If none of the above is true for you, look for Loaded Configuration File in output of:
phpinfo();
Upvotes: 5
Reputation:
Check in php.ini (/etc/php5/apache2/php.ini in debian & ubuntu)
directive: upload_max_filesize
if can't - look this key in .htaccess file
Upvotes: 1
Reputation: 106609
PHP.ini contains a setting upload_max_filesize
. The default value is 2MB. Keep in mind that even where PHP does not limit this value (e.g. if you modify your PHP.ini to a higher level) that your web server software (e.g. Apache, Lighttpd, Nginx, IIS) probably impose their own limits.
Upvotes: 1