Page 1 of 1
upload_max_filesize
Posted: Wed Sep 13, 2006 10:45 pm
by kcwong13
Hi there,
I would like to change upload_max_filesize to 8MB, i set the these values php.ini
upload_max_filesize= 8M
post_max_size= 10M
memory_limit= 10M
max_input_time=90
max_execution_time=120
but i still cannot upload file which more than 2MB, may i know is it i miss somethg?
Thanks and best regard
Kc
Posted: Wed Sep 13, 2006 11:31 pm
by Luke
Posted: Wed Sep 13, 2006 11:45 pm
by kcwong13
Hi there,
Thanks for your reply, i already set post_max_size greater than upload_max_filesize, is it have any other problem?
Thanks and best regard
Kc
Posted: Wed Sep 13, 2006 11:52 pm
by Luke
I'm sorry I need more sleep... totally missed that in your post

Posted: Thu Sep 14, 2006 6:49 pm
by feyd
Have you checked your phpinfo() to make sure your changes to php.ini took effect?
Posted: Mon Sep 18, 2006 2:41 am
by arkady
Don't forget to reinitialise apache (assuming you're the system administrator: /etc/init.d/httpd restart)
Also, you may be sending the $MAX_FILE_SIZE via a POST header (if you're using a tutorial off the net, many specify this in the form code for the submitting webpage).
Posted: Mon Sep 18, 2006 3:57 am
by kcwong13
Hi there,
yes, i ceck the phpinfo.php, the changed i make already save, and i initial the server, but still cannot upload the file more than 2MB, any other solution?
thanks and best regard
Kc
Posted: Mon Sep 18, 2006 11:18 am
by pickle
As ~arkady said, what's the value of your "MAX_FILE_SIZE" element? If that's still at 2000000, that would explain it.
What exactly is the value of the error you're getting? Matching it up here:
http://ca3.php.net/manual/en/features.f ... errors.php, might help you narrow down the problem.