Maximum upload size in PHP and Apache? [duplicate]
Asked Answered
G

1

15

I want to know what is the Maximum upload size in PHP and Apache? Can i upload more than 2GB file through web browser?

Glasper answered 24/6, 2014 at 2:23 Comment(2)
upload_max_filesize in your php.ini. Yes you canAmphibian
https://mcmap.net/q/636800/-php-apache-ajax-post-limit/…Crevice
A
26

upload_max_filesize in your php.ini You may want to check post_max_size as well

check this answer for more details PHP change the maximum upload file size

Amphibian answered 24/6, 2014 at 2:25 Comment(2)
Yes, i want to know can i add any size like 10GB?Glasper
If you want to upload a file via a POST form use: post_max_size = 20M (max file size in this example is 20 Megabytes) If you want to just set the maximum uploadable file size use: upload_max_filesize = 20M Both are set in the php.ini file (usually located in /etc/php7.1 or similar). If this is not explicitly set or your hosting service does not give you the privileges to do this, it may also be possible to set this value in your .htaccess file similar to the following: php_value upload_max_filesize 20MDibri

© 2022 - 2024 — McMap. All rights reserved.