Wrong permissions set on the public / upload folder.
Try using something like:
chown -R www-data:www-data /var/www/laravel/public
chown -R www-data:www-data /var/www/laravel/storage
I just deployed my laravel project on Nginx Ubuntu Server but anytime i tried to upload image i get this error
2020-06-14 21:00:32] production.ERROR: fopen(/var/www/laravel/public/image/uploads/1.png): failed to open stream: Permission denied {"userId":1,"exception":"[object] (ErrorException(code: 0): fopen(/var/www/laravel/public/image/uploads/1.png): failed to open stream: Permission denied at /var/www/laravel/vendor/league/flysystem/src/Adapter/Local.php:157)
and also in my database i get this /tmp/phpuFp8xC
What am i doing wrong?
Please or to participate in this conversation.