SonataMediaBundle: File "" does not exist 500 Internal Server Error - FileNotFoundException

I downloaded some files using SonataMediaBundle, but when I wanted to add another one, I got this error.

Do you have any ideas?

this is a stack error:

in /var/www/znata.com/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/File/MimeType/MimeTypeGuesser.php at line 107 -+ public function guess($path) { if (!is_file($path)) { throw new FileNotFoundException($path); } if (!is_readable($path)) { 

thanks

+2
source share
3 answers

This is probably due to the fact that the maximum size of the downloaded file is set in the php.ini settings.

Change this to a higher value in php.ini

 upload_max_filesize = 2M 
+8
source

he cannot find the file if (! is_file ($ path)) {throw new FileNotFoundException ($ path); }

I think you should restore a new file for the second

0
source

You may encounter a similar error if you have a form that does not have an attribute: enctype = "multipart / form-data"

0
source

All Articles