rlw92's avatar
Level 1

User uploaded images not showing

Hi there I have a laravel application that I have deployed on render.

It is an image uploading crud application.

I can see the user uploaded images on my device. But when I go onto another device they are not showing.

my github repo is haunted-inventory-laravel/tree/main

Thank you in advance for any help.

0 likes
5 replies
rlw92's avatar
Level 1

In my scripts/oo-laravel-deploy.sh i am running php artisan storage:link

my filesystems.php is as below:

'default' => env('FILESYSTEM_DISK', 'local'),

if this isnt the iinformation you need please tell me how do i check what filesystem disk i am using.

martinbean's avatar

@rlw92 Given Render is a PaaS like Heroku, so I doubt any uploaded files are going to be persisted, as they will have any number of nodes that will be handling requests for your application.

You’ll need to use an external data store like S3.

amitsolanki24_'s avatar

@rlw92 did you run storagr:link command to createa symbolic link between storage app folder and public folder.

Please or to participate in this conversation.