Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maximum upload size in PHP and Apache? [duplicate]

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

like image 845
mint Avatar asked Jun 24 '14 02:06

mint


People also ask

What is the maximum upload file size in PHP?

To increaes file upload size in PHP, you need to modify the upload_max_filesize and post_max_size variable's in your php. ini file. In addition, you can also set the maximum number of files allowed to be uploaded simultaneously, in a single request, using the max_file_uploads .

How can I upload more than 2 MB in PHP?

by default PHP will not handle file uploads larger than 2MB, if one requires PHP to handle larger files then one must set upload_max_filesize and post_max_size in your php. ini file to be larger than 2MB.

How do you fix the uploaded file exceeds the upload_max_filesize?

In order to fix this error, you need to increase the file size upload limit. That is, you need to increase the value of the upload_max_filesize directive in your php. ini file.


1 Answers

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

like image 128
Yannick Y Avatar answered Sep 18 '22 20:09

Yannick Y