Reputation: 2008
I am getting this warning when i m uploading file more than 8mb.
I have changed following to php.ini file
upload_max_filesize = 10M
post_max_size = 10M
memory_limit = 128M
and i have restarted the apache server too.
and i am checking through ths script
if($_FILES["submission_file"]["size"] < 1.049e+7)
{
echo "success";
}
What i am doing wrong?
Upvotes: 0
Views: 6910
Reputation: 196
You can also change it via an .htaccess file.
php_value upload_max_filesize 10M
php_value post_max_size 10M
Upvotes: 1