laravel-filemanager "Laravel 5.5" cannot upload png and jpg

Created on 27 Oct 2017  路  5Comments  路  Source: UniSharp/laravel-filemanager

extensions like gif, svg ... gets uploaded successfully.
but the extention png and jpg me return "invalid request upload".
OS Archlinux,
php-gd installed,
php-exif installed

Most helpful comment

problem solved
I reinstall GD

All 5 comments

Hi @anasmorahhib
What version of laravel-filemanager do you use?
Would you please provide us your lfm.php config file and related error logs here?

problem solved
I reinstall GD

I'm having exactly same problem..what is GD??

@rlrlaa123 It means the php-gd extension.

In localhost (homestead) not have the problem but production has error.
The solution is install gd:

sudo apt-get install php7.0-gd

In my case I uses php7.0, you change by your version of php
Next reload your server web (apache or nginx)
And ready.


Spanish:
En mi entorno local me funcionaba todo al subir a producci贸n fallaba, solo me dejaba subir gif y svg sin problemas.
La soluci贸n fue instalar gd

sudo apt-get install php7.0-gd

En mi caso tengo php7, depende de tu versi贸n.
Luego reiniciar tu servidor web (apache o nginx)
Y listo

Was this page helpful?
0 / 5 - 0 ratings