I was trying to upload a file using php to my local using XAMPP on MacOS. Whenever I tried to upload a file through script, I got thi error.
move_uploaded_file - Failed to open stream: Permission denied
So I tried some fixes I saw on internet, like chmod -R 777 , changing the user-group and also tried to give read&write permisson to every user; None of them works.
I wanna know how this error can be fixed. I think this is some security issues of MacOS.
source https://stackoverflow.com/questions/70583017/move-uploaded-file-failed-to-open-stream-permission-denied-in-xampp-macos
Comments
Post a Comment