move_uploaded_file failed to open stream: Permission denied - Mac move_uploaded_file failed to open stream: Permission denied - Mac apache apache

move_uploaded_file failed to open stream: Permission denied - Mac


My solution was to give the permission for the images folder and the php file, by going to the file > Right click > Get info > and then change all the permissions to read&write as the following picture.

enter image description here


I am using ubuntu and once I have encounter this problem, I have solved this problem by changing all the access permissions of the folder in which I want to move the files to 'create and delete files'. See below screenshot:

enter image description here


Set the same permission for your target(uploading) folder