Member-only story
Uploading and viewing images with your Laravel 10 project
Laravel Image Uploads: How to Display Images on Digital Ocean App Instances
In a Laravel project hosted on Digital Ocean’s App Platform, managing and displaying images efficiently is crucial.
Often, developers encounter issues when images uploaded using certain plugins don’t appear in the browser after deploying the project.
This problem can be resolved by creating a symbolic link (also: symlinks) between the image storage location and the public directory.
In this blog post, I will show you how to ensure images uploaded from your Laravel project are accessible in the browser on a Digital Ocean app instance.
The Challenge: Missing Images on Digital Ocean
When hosting a Laravel 10 project on Digital Ocean, one common issue faced by developers involves images that have been uploaded locally using plugins but do not appear when the project is deployed.
This discrepancy occurs because the local development environment and the production environment on Digital Ocean have different file system structures.
In your local environment, Laravel typically stores uploaded images in the /storage
…