For those struggling with Document File location

When you do typical deploy, it does not matter what your application document settings are. It ignores them (which is ridiculous, actually). You have to do advanced and put them in. BUT on my system, advanced deploy does something to the common libs so I can’t use it. I found a fix. In the deploy of, let’s say FORM_SUPPRESSFILES…there is an index.php in the FORM_SUPPRESSFILES directory. If you open index.php in any text editor, you will find the following lines:

$_SESSION[‘scriptcase’][‘form_suppressfiles’][‘glo_nm_path_prod’] = “”;
$_SESSION[‘scriptcase’][‘form_suppressfiles’][‘glo_nm_path_imagens’] = “”;
$_SESSION[‘scriptcase’][‘form_suppressfiles’][‘glo_nm_path_imag_temp’] = “”;
$_SESSION[‘scriptcase’][‘form_suppressfiles’][‘glo_nm_path_cache’] = “C:/Program Files/NetMake/v9-php73/wwwroot/scriptcase/file/cache”;
$_SESSION[‘scriptcase’][‘form_suppressfiles’][‘glo_nm_path_doc’] = “”;
$_SESSION[‘scriptcase’][‘form_suppressfiles’][‘glo_nm_conexao’] = “conn_suppression”;

In a typical deploy, the paths will be blank “”. I now keep a text file with the correct values I want for my upload:

$_SESSION[‘scriptcase’][‘form_suppressfiles’][‘glo_nm_path_prod’] = “/scriptcase/prod”;
$_SESSION[‘scriptcase’][‘form_suppressfiles’][‘glo_nm_path_imagens’] = “/scriptcase/file/img”;
$_SESSION[‘scriptcase’][‘form_suppressfiles’][‘glo_nm_path_imag_temp’] = “/scriptcase/tmp”;
$_SESSION[‘scriptcase’][‘form_suppressfiles’][‘glo_nm_path_cache’] = “C:/Program Files/NetMake/v9-php73/wwwroot/scriptcase/file/cache”;
$_SESSION[‘scriptcase’][‘form_suppressfiles’][‘glo_nm_path_doc’] = “e:/suppression”;
$_SESSION[‘scriptcase’][‘form_suppressfiles’][‘glo_nm_conexao’] = “conn_suppression”;

I just overwrite these lines that have blank values with the ones from my text file and save index.php. After 4 days of fighting this, it has totally solved the problem. It isn’t elegant, but it works.