Dear all,
I am coding simple function accepting picture uploads. It works fine, except the server does not accept anything larger than 2MB.
My function first checks for the upload error based on value of $_FILES[filename][error]. Whenever I upload a JPG over 2MB, the upload terminates with the error 1, meaning:
I increased the value of upload_max_filesize by the command:
placed in .htaccess.
The phpinfo() reports master value of 2MB and the local value of 8MB.
At the top of my upload handling code I placed:
and it returns "8M".
BTW, the CMS I use for this website also reports 8MB as the upload_max_filesize and it also cannot upload anything bigger than 2MB.
Has anyone had a similar case? What am I missing? Please help.
I am coding simple function accepting picture uploads. It works fine, except the server does not accept anything larger than 2MB.
My function first checks for the upload error based on value of $_FILES[filename][error]. Whenever I upload a JPG over 2MB, the upload terminates with the error 1, meaning:
"The uploaded file exceeds the upload_max_filesize directive in php.ini. "
I increased the value of upload_max_filesize by the command:
php_value upload_max_filesize 8M
placed in .htaccess.
The phpinfo() reports master value of 2MB and the local value of 8MB.
At the top of my upload handling code I placed:
ini_get('upload_max_filesize')
and it returns "8M".
BTW, the CMS I use for this website also reports 8MB as the upload_max_filesize and it also cannot upload anything bigger than 2MB.
Has anyone had a similar case? What am I missing? Please help.