File Upload issues with DOC folder in development, not production.

In my development environment (hosted with http://scriptcase.host) if I do a file upload it makes it to the TMP folder where I can see it… but it doesn’t ever save it to the DOC folder… if I publish to production… it works!

Any ideas on how to fix it? I asked for support with the host but they directed me back here for support.
Thanks!

try to create a test folder, and see if it save after on this folder, maybe

ex:
$dirpat = $_SERVER [‘DOCUMENT_ROOT’]."/tmp";
$dirtemp = “$dirpat / test”; // The name of the directory to create

// Check if the directory exists:
if (! (is_dir ($dirtemp))) {
mkdir ($dirtemp);
// echo ‘The directory’.$name. ’ has just been created! ';
}

Thank you that helped… it is very odd to say but the dynamic path to the TMP folder and the Images folder works fine… however it was required that I use an absolute path to the docs folder. So I changed it in the system settings and also the settings of the application I was one and it is working now.

It is quite confusing that the default configuration works for Image (file) upload but not for Document (file) upload unless you modify the path to be absolute path.

None the less it is now working.
If anyone else comes across this post int he future you need to check the paths in “Options->Settings->System Folders” to change the default paths that will be used in your apps. In the Apps you need to check in Application group -> Settings -> ‘Documents Path’ and ‘Image Directory’.
The paths in there may need to be Absolute paths and not relative.