fail to upload file with Document(FileName) on linux Debian 9

I use windows for development. I can create a form and upload files with Document(File Name), but I fail to do the same thing in production environment which I use Linux Debian 9. The error message is “(field name of the FileName): upload failed”.
Strange enough that I also fail to upload with Document(Database) and the error message is “(field name of the Blob): upload failed”.
In my production environment I use php7.2 and my scriptcase version is 9.
(By the way, I run this on google cloud platform).

Please help me as I got no clue how I can fix it.
Thank you!

I add an extra information.
When I am testing on my production environment. I assign ReadWriteExecute to other and group therefore it shall not be a permission problem.
thank you

May not be exactly what you need… but pay special attention to the paths that are being used in your application with the upload fields… in the application go under “Application” and go to Settings… then look at the “Documents Path”. I had to make my path an absolute path and not a relative path to get it to work. If you want to test if its a rights issue you can try creating a folder in your application and see if it works or fails. Like this:

$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! ';
}

@nsch2308 Thank you for your example code.
​​​​​​​

@yourguide
Thank you so much for your help!