Reputation: 1
image file is uploading on localhost but not on server! given below is the error.
Warning: move_uploaded_file(imagesphp/free4all2.png) [function.move-uploaded-file]: failed to open stream: Permission denied in E:\Inetpub\vhosts\winningsolutions.com.pk\httpdocs\newsserver.php on line 24
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\Windows\Temp\php173F.tmp' to 'imagesphp/free4all2.png' in E:\Inetpub\vhosts\winningsolutions.com.pk\httpdocs\newsserver.php on line 24
Upvotes: 0
Views: 1082
Reputation: 10381
Find your upload folder and change its permissions. Next images show the steps:
I am costarrican (I speak spanish), that's why I entered the name "Todos" (forth image), but in english you should name it "Everyone". These are special words, you can't name the permission any different.
In the last image, select the created permission ("Todos" or "Everyone"), then mark the unmarked checkboxes in order to have all permissions. Then your upload folder will be ready.
Try ant let us know.
Upvotes: 0
Reputation: 23053
Make sure that the imagesphp
directory is writable by your webserver. Permissions can be set via for example FTP or via an admin panel of your website.
Upvotes: 1
Reputation: 293
You don't have write permission. https://msdn.microsoft.com/en-us/library/bb727008.aspx
Upvotes: 0