laravel-filemanager icon indicating copy to clipboard operation
laravel-filemanager copied to clipboard

Getting Error 404 after uploading an image

Open claytongf opened this issue 5 years ago • 10 comments

  • Operating system : Ubuntu 18.04 server in Digital Ocean
  • Laravel version : 5.8
  • Package version : 2.0 alpha8 Creating folders and uploading images are working well. But after uploading an image, that image is not showing properly. In console, I'm getting error 404. Captura de tela de 2019-08-28 18-42-37 The image is saved on folder storage/app/public/photos/1 In local server (using laradock), the image shows correctly, but in Digital Ocean not. Any ideas?

claytongf avatar Aug 28 '19 21:08 claytongf

I have the same problem Package version : dev-master and Package version : v2.0.0-alpha8

gohari avatar Aug 31 '19 09:08 gohari

I have the same problem Package version : dev-master and Package version : v2.0.0-alpha8

ikkosatrio avatar Sep 05 '19 06:09 ikkosatrio

how to resolve this issues?, which version can be use? i use 1.8 too. but also get 404 after upload. i already do php artisan storage:link and delete public/storage many times

ikkosatrio avatar Sep 05 '19 06:09 ikkosatrio

Did anyone solved this issue already? I am getting the same issue

GET http://localhost:8000/storage/files/1/thumbs/sponsor.png?timestamp=1578085409 net::ERR_CONNECTION_REFUSED

mkcodepxl avatar Jan 03 '20 21:01 mkcodepxl

Did anyone solved it?

dionajie avatar Jan 22 '20 16:01 dionajie

me to Did anyone solved it? my laravel is 6

BornaItCo avatar Feb 08 '20 16:02 BornaItCo

up

BornaItCo avatar Feb 22 '20 05:02 BornaItCo

i have this problem :((( Did anyone solved it?

rezarahmatiseo avatar Jun 28 '20 18:06 rezarahmatiseo

I have this problem too in local. I upload images in public folder (in "/uploads/images" and upload is working well) and when i remove "/storage" from image url , image show correctly. How can i fix this? How can i change url from "/storage/uploads/image/example.jpg" to "/uploads/image/example.jpg" ? Can anyone help us please? Thanks

alipar76 avatar Feb 22 '21 14:02 alipar76

Hey guys I found a solution For showing images correctly , do these steps: 1- Go to config/filesystems.php and add below to disks part :

'ckeditor' => [
            'driver' => 'local',
            'root' => public_path('/'),
            'url' => '/',
            'visibility' => 'public',
        ],

2- Go to config/lfm.php and edit disk to: 'disk' => 'ckeditor',

I hope this works for you.

alipar76 avatar Feb 24 '21 13:02 alipar76