Fix Error: “Exceed The Maximum Upload Size For This Site” on Localhost

When you upload any file that has size > 2MB on localhost, you’ll get an error: “Error: Exceed the maximum upload size for this site.” The maximum upload file size is 2MB by default. So, if you want to upload the file to localhost, you need to change this value.

Please view the video above to see the solution.

If you are running XAMPP, you go to the XAMPP Control Panel:

You click on the Config button » Click PHP (php.ini) to open the php.ini file (you can open using Notepad or Notepad ++).

– You find the code in the php.ini file:

max_execution_time=60

...

post_max_size=2M

...

upload_max_filesize=2M

And you replace the value as follows:

max_execution_time=500

...

post_max_size=100M

...

upload_max_filesize=100M

You’ve increased the maximum upload file size up to 100MB and a maximum execution time of 500 seconds. Now, you need to restart XAMPP software to apply the changes and continue your work.

Save


Choose a language

SEARCH

CMMS Lazada

Hải sản Vân Đồn

 

Chào mừng bạn đến với chuyên mục

giới thiệu và cung cấp các mặt hàng

hải sản của Vân Đồn. Hải sản Vân Đồn

- Quảng Ninh | Tươi ngon, bổ dưỡng

và đảm bảo với giá cả phải chăng.

» Xem trang....