Looking for ?

Translate

Solved - I can not Upload big file size in laravel

Are you developing a photo gallery or upload website and having the problem to upload a big file. 

FIRST SOLUTION

  1. open this file phpmyadmin.conf either by VS code or notepad, it is probably in this location too on your computer "C:\wamp64\alias\phpmyadmin.conf"
  2. Once opened you would see something like this
    php_admin_value upload_max_filesize 104M
    php_admin_value post_max_size 104M
    once seen, increase the 1500 to as high as possible based on your file upload requirement, save and restart your wamp

If this doesn't solve it then try solution 2




SOLUTION 2

  1. open your wamp folder then the bin/php folder, you will see a list of php version folders like so "php7.4.33, php8.0.26, php8.1.13, php8.2.0" respectively, open the version of php you are using and open php.ini file
  2. edit "upload_max_filesize = 2M" to "upload_max_filesize = 20M", edit post_max_size = 2M to post_max_size = 256M , edit max_file_uploads = 20  to max_file_uploads = 900 edit in each of the php.ini in all the 4 php folders versions
  3. Once done with the editing ensure you save then restart your PC or Restart your wamp and try again.
  4. That's it

SHARE THIS POST

About Wakabia

    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment