I study PHP using books
The content is to make a shopping cart, and I stumbled when I tried to upload the product image.
When I add an image,
This error will result in
I checked the copied code many times, but I couldn't see the wrong part.
Sharing and permission to upload image folders were read/writeable
I copied the code like this, but the image is not displayed and an error appears.php
As the error message indicates, the image upload destination directory does not have write permission.On Linux, you can run the following commands:
For example, to save an image to
© 2022 OneMinuteCode. All rights reserved.