Page 1 of 1

cannot override max upload file size

Posted: Fri Oct 15, 2010 3:01 am
by peterman5
Hello,
I am unable to upload and override the php.in settings of 2M

I used all this

ini_set("upload_max_filesize", "9M");
ini_set("post_max_size", "9M");
ini_set("max_execution_time", "100");
ini_set("max_input_time", "100");

set_time_limit(100);


No Video Is getting uploaded above 2M

The php.ini settings are 2 M

I also used this
<input type="hidden" name="MAX_FILE_SIZE" value="9000000000" />

a file 1.8 mega gets uploaded

a file of 5 and 7 mega does not

Many Thanks

Re: cannot override max upload file size

Posted: Fri Oct 15, 2010 4:24 am
by mikecampbell
Some settings cannot be changed after the page has started loading, including upload_max_filesize. You can set it in php.ini, .htaccess or httpd.conf if you have access to those.