What's the Maximun file size allowed for uploads?

All about webserver configurations, PHP and databases.

Moderator: Thorsten

Post Reply
rthonly2001
Posts: 5
Joined: Fri Jan 11, 2013 5:21 pm

What's the Maximun file size allowed for uploads?

Post by rthonly2001 » Fri Jan 11, 2013 5:49 pm

Hi, newbie in php and phpMyFAQ like to know what's the maximum file size allowed for uploads on embedded media?
So far I was able to modify my ini.php to 20mb and I was able to upload files as big as 7mb but I tried 12mb and 17mb and didn't work. So I'm thinking there must be a limit somewhere other than ini.php. Can someone help clarifying what else needs to be configure to upload bigger files like video.mov of 35mb?

Thorsten
Posts: 14754
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: What's the Maximun file size allowed for uploads?

Post by Thorsten » Fri Jan 11, 2013 6:10 pm

HI,

depends on your PHP configuration. Theoretically 2 GB are possible.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

rthonly2001
Posts: 5
Joined: Fri Jan 11, 2013 5:21 pm

Re: What's the Maximun file size allowed for uploads?

Post by rthonly2001 » Fri Jan 11, 2013 11:50 pm

Ok if 2GB is the max file size upload, why is 12mb not loading since I've have modified my ini.php to 200mb. Is there some more setting to change?

Code: Select all

; Maximum allowed size for uploaded files. Default upload_max_filesize = 2M
upload_max_filesize = 200M
Roland

Thorsten
Posts: 14754
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: What's the Maximun file size allowed for uploads?

Post by Thorsten » Sat Jan 12, 2013 6:24 am

Hi,

did you check

Code: Select all

post_max_size
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

rthonly2001
Posts: 5
Joined: Fri Jan 11, 2013 5:21 pm

Re: What's the Maximun file size allowed for uploads?

Post by rthonly2001 » Sat Jan 12, 2013 9:53 pm

No I didn't, but now that you mention it I'll check;
This was on my ini.php

Code: Select all

; Maximum size of POST data that PHP will accept.
post_max_size = 8M
now I changed it to;

Code: Select all

; Maximum size of POST data that PHP will accept.
post_max_size = 200M
And tried again with a 12MB file and this time did worked!!!
Now my only concern is if charging it to 200M will affect anything else on the system? if not i'm good to go :P

Thank you for you prompt help

Thorsten
Posts: 14754
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: What's the Maximun file size allowed for uploads?

Post by Thorsten » Sun Jan 13, 2013 9:24 am

Hi,

no, it just increases the size of POST requests handled by PHP

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Post Reply