Skip to content
Advertisement

Laravel 8.38 validation issue, max file size. RuntimeException: The file {public path} cannot be opened. in file Psr17Factory.php on line 46

Created the file validation as (for test purpose it is 5kb)

JavaScript

There is a weird issue, as it is displaying a valid error on uploading png

JavaScript

but on uploading mp4 it is throwing following error

JavaScript

Advertisement

Answer

  1. Open icons tray on right side of your windows.
  2. left click on wamp icon.
  3. click on PHP > PHP Settings > upload_max_filesize = (set the size to max 256 MB).

You can also edit it in php.ini file in C:wamp64binapacheapache2.4.37binphp.ini click here for image

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement