I am using XAMPP server on my Windows 10 and developing on Laravel 5.7, I want to upload images up to 10mb in size but by default php allows only up to 2mb. So I tried to update my php.ini file as described in the title, but when I tried to submit the for it gave me 'HTTP error 500'.
(I changed 'upload_max_filesize' from 2M to 1024M and 'post_max_size' from 8M to 1024M).
I am using: Laravel5.7, PHP7.3.1, XAMPP3.2.2
Need to increase the file size upload limit.
If using on a local machine using XAMPP, we will find the php.ini in the following locations. Windows: C:\\xampp\\php\\php.ini
Open the php.ini file. Find these lines in the php.ini file and replace it following numbers
upload_max_filesize = 64M
Save the changes and refresh your website and try uploading the file again. and Don't forget to restart your XAMPP Apache server
NOTE: For Windows, you can find the file in the C:\\xampp\\php\\php.ini-Folder (Windows) or in the etc-Folder (within the xampp-Folder).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.