Permission denied while uploading a file

后端 未结 1 411
我寻月下人不归
我寻月下人不归 2020-12-07 03:18

I am using this code to upload a document to my server.

 0){
echo \"Error: \" . $_FILES[\"file\"][\"error\"] .         


        
相关标签:
1条回答
  • 2020-12-07 03:38

    The problem is that your folder is not having write permission. And because of that it is not uploading the file.

    You have to give it write permission. You can also use chmod for giving write permission to that folder.

    Also check who is having that write permission for that folder. When you upload the file from code it is uploaded as Other user.

    More info

    0 讨论(0)
提交回复
热议问题