By engamr
Hello Now I deployed a Laravel project and try Upload Photo this Error Return To me
file_put_contents(/var/www/html/test/public/img/photo-1.jpg): failed to open stream: Permission denied
what is solution
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
A simply search on an engine would’ve found you multiple soultions. Source 1: https://stackoverflow.com/questions/8103860/move-uploaded-file-gives-failed-to-open-stream-permission-denied-error-after Lesson 1: Search the end of the error if you don’t understand what to do in the event of an error. (99% of the time someone else has had the same issue before)
this solution work with me https://www.digitalocean.com/community/questions/permission-denied-whenever-uploading-files
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.