#I changed the storage folder for uploaded files and now I can't access them

1 messages · Page 1 of 1 (latest)

cunning shell
#

I wanted to upload the files in an upload folder instead of the default public.

        'public' => [
            'driver' => 'local',
            'root' => storage_path('app/public'),
            'url' => env('APP_URL') . '/storage',
            'visibility' => 'public',
            'throw' => false,
        ],
        'uploads' => [
            'driver' => 'local',
            'root' => storage_path('app/uploads'),
            'url' => env('APP_URL') . '/storage/uploads',
            'visibility' => 'public',
            'throw' => false,
        ],

This is the filesystem.php

the uploaded files currently look like that.

#

The uploads/uploads folder also has files in it but I can't access any

#
BROADCAST_CONNECTION=log
FILESYSTEM_DISK=local
FILESYSTEM_DRIVER=uploads
#

Someone said update the FILESYSTEM_DRIVER in the .env on a stackoverflow post and I did so without asking why

#

I'm trying both uploads/ and uploads/uploads without any success

#

Oh and I also ran this in the terminal: php artisan storage:link

#

I changed the storage folder for uploaded files and now I can't access them

oblique wharf
#

You'd also need to define that path as a link, otherwise the command won't link that folder to your public directory