Get Temporary Filename on Upload (Scriptcase 8)

Hello,

I converted my project from Scriptcase 7 to Scriptcase 8.

My problem is that I can’t get the filename of the temporary file which is saved in the tmp directory. Before, I’m using javascript to get the value/ content of the element with the id ‘id_ajax_doc_’+elementname which equals to the value of the temporary file; but in Scriptcase 8, this is no longer true.

Sample :


var elementname = 'profpic';
var tmpfilename = $('#id_ajax_doc_'+elementname).html();

How could the get this value in Scriptcase 8 using javascript?

Thanks.

As fasr as I know the filename in the temporary is in $_SESSION[‘scriptcase’][‘grid_filestorage’][‘glo_nm_path_imag_temp’] the name grid_filestorage is the name of your particular application.
Also in some cases $this->Ini->root . $this->Ini->path_imag_temp should be workable.
Check your generated php files and you will see what I mean. Just search for imag_temp in those files.

Thanks. I’ll try it.