I’m currently facing an issue with accessing files stored in the storage directory of my Laravel application. I created a symbolic link in public/storage pointing to storage/app/public.
Issue:
While I can access files directly via their full path, such as:
http://domain.ltd/storage/app/public/01J7APYM46BDKSMS6KRTHPWDQ8.jpg
I cannot access them using:
http://domain.ltd/storage/01J7APYM46BDKSMS6KRTHPWDQ8.jpg
This returns a 404 Not Found error.
Already Tried:
-
Created Symbolic Link: php artisan storage:link
-
Checked Permissions
chown -R www-data:www-data /path/to/your/laravel/storage
chmod -R 775 /path/to/your/laravel/storage