It could be... 1. A hidden form field for MAX_FILE_SIZE limiting 2mb file size. 2. check the php.ini file is set to limit file size of 2mb 3. A code in php script like $_FILES['file']['size'] > 2000000 PHP: limiting the file size
why not put a hidden field in the upload form specifying your maximum size? if you dont specify this, i believe the default setting is 2mb. <input type="hidden" name="MAX_FILE_SIZE" value="1000000" /> HTML:
olddocks, It may be a cause that I didn't set hidden field for MAX_FILE_SIZE But where I use this name "MAX_FILE_SIZE" in my php code?
I found the following line in php.ini on my local server ; Maximum allowed size for uploaded files. upload_max_filesize = 64M Code (markup): But my web pages hosted to another web server for make it online. So how or where can I find the php.ini file ?
It could also be a post max size restriction. Place the following in a .htaccess file in your public_html folder on your site: php_value upload_max_filesize 20M php_value post_max_size 20M Code (markup): Replace 20 with the max file upload size you wish to allow. See if that helps.
In my hosting I can upload more than 2 MB sized file by ftp client but, from php form I can't upload more than 2 MB sized file. What can I do now?