Try setting permissions explicitly in the config
https://laravel.com/docs/9.x/filesystem#local-files-and-visibility
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello, I have a problem since I upgraded to laravel 9. When I upload an image to storage, the permissions to access the file are no longer correct.
Example : A user uploads a new image: the image save to this path: storage/app/public/folder/{user_id}/{project_name}/photos/my_photo.jpg
my_photo.jpg has the correct permissions (644)
but all the folders present between public/ and my_photo.jpg were created with permissions 700 instead of 755. The image therefore comes out with a 403 error.
I contacted my host but it doesn't seem to come from them.
Does anyone have a solution to my problem?
Thanks very much !
Try setting permissions explicitly in the config
https://laravel.com/docs/9.x/filesystem#local-files-and-visibility
Please or to participate in this conversation.