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.