Error 500 move_uploaded_file

Asked

Viewed 105 times

0

I have a problem with error 500, While uploading an image to my page, although completing the Upload, when moving the image to the directory appears the following error:

PHP Warning: move_uploaded_file(../../img/product/221_1157-4f6a306c94af679657ced7273b5ad4ea.jpg) [Function.move-uploaded-file]: failed to open stream: Permission denied in E: home ghpc Web v2 upload control.php online 16

I have tried changing the directory permissions How to proceed?

  • You know if the way ../../img/produto/221_1157-4f6a306c94af679657ced7273b5ad4ea.jpg points to the correct file? Have you tried using the full path?

  • 4

    You have the answer in the mistake you received: Permission denied Missing permissions to access the board to write on it.

  • I phoned on localweb, they granted the permission in the folder to me now the code is working as it should. Thank you very much for the supports

1 answer

0


Check that your web server has write permissions in the "/product directory"

Browser other questions tagged

You are not signed in. Login or sign up in order to post.