I am using this code to upload files to a windows server:
// Move the file over.
if (move_uploaded_file ($_FILES['upload']['tmp_name'], "uploads/{$_FILES['upload']['name']}")) {
The error log result says: move_uploaded_file(): Unable to move 'C:\Windows\Temp\phpF2C3.tmp' to 'C:\wwwroot\uploads/flag.png' in C:\CustomerData\webspaces\webspace_00254529\wwwroot\upload_image.php on line 35
I assume this is a path related error (the folders have full permissions) but I am unsure how to include the path code into the upload file. Any suggestions greatly appreciated
/in front of the upload folder. Thus,"/uploads/{$_FILES['upload']['name']}"give that a try. Plus permissions could also be a factor.uploadsfolder exist?