vendredi 20 juillet 2018

Laravel - EC2 Image Upload Folder Permissions

I have a Laravel 5.6 app installed on an Amazon Elastic Beanstalk instance. Everything is working fine apart from image uploads. When I try and upload an image I get the following error message..

/var/app/current/storage/app/images/uploadedimage.jpg): failed to open stream: Permission denied

I have run the following command to set permissions..

sudo chown -R ec2-user:ec2-user /var/app/current/storage/app/images/

But I am still getting the error, can anyone shed any light on why this is happening and the correct permissions I should be setting?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire