Using wrong file upload path
DFP is using the wrong file upload path when live, when local it uploads fine. I added this to see the errors:
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>
In the errors that are produced it is trying to use this file path which doesn't exist:
D:\Inetpub\dynamicrenovation\admin\..\images\products
It should be:
D:\Inetpub\dynamicrenovation\images\products
I think the \admin\ part is because the upload page is in a directory called admin so I can keep my files a little neater. The image and admin directories are at the site root. How can I get it not append the \admin\ so that it uploads correctly?
Here are the errors:
Warning: move_uploaded_file(D:\Inetpub\dynamicrenovation\admin\..\images\products\3b9273db3eea051e31b8fd7c4fc9708c_tmp.gif) [function.move-uploaded-file]: failed to open stream: Permission denied in D:\Inetpub\dynamicrenovation\WA_DigitalFilePro\HelperPHP.php on line 96
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\WINDOWS\Temp\php778B.tmp' to 'D:\Inetpub\dynamicrenovation\admin\..\images\products\3b9273db3eea051e31b8fd7c4fc9708c_tmp.gif' in D:\Inetpub\dynamicrenovation\WA_DigitalFilePro\HelperPHP.php on line 96
Warning: copy(D:\Inetpub\dynamicrenovation\admin\..\images\products\3b9273db3eea051e31b8fd7c4fc9708c_tmp.gif) [function.copy]: failed to open stream: No such file or directory in D:\Inetpub\dynamicrenovation\WA_DigitalFilePro\HelperPHP.php on line 98
Warning: move_uploaded_file(D:\Inetpub\dynamicrenovation\admin\..\images\products\43e6b4edb49e35512b8ea4bf72c5e683_tmp.gif) [function.move-uploaded-file]: failed to open stream: Permission denied in D:\Inetpub\dynamicrenovation\WA_DigitalFilePro\HelperPHP.php on line 96
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\WINDOWS\Temp\php778C.tmp' to 'D:\Inetpub\dynamicrenovation\admin\..\images\products\43e6b4edb49e35512b8ea4bf72c5e683_tmp.gif' in D:\Inetpub\dynamicrenovation\WA_DigitalFilePro\HelperPHP.php on line 96
Warning: copy(D:\Inetpub\dynamicrenovation\admin\..\images\products\43e6b4edb49e35512b8ea4bf72c5e683_tmp.gif) [function.copy]: failed to open stream: No such file or directory in D:\Inetpub\dynamicrenovation\WA_DigitalFilePro\HelperPHP.php on line 98