Now that I'm using the GWC, I'm trying to use the File Upload feature, but I'm not sure I'm doing it right. In the .PER I have an EDIT field with STYLE='FileUpload'. The form displays the Browse button and I can browse for the file. In the .4GL I have an INPUT for for the variable l_initial_path, with an ON ACTION button that calls FGL_GETFILE() after the file is selected.
If I inspect the variable l_initial_path that is collected by the INPUT after the file is selected, it has only the basename of the file browsed for. E.g. if I browse for 'h:\frost.csv', the variable set by the INPUT has the value 'frost.csv'. I also set the variable l_dest_path for the destination path on the app server, for example 'd:\exportfs\xfr\data\frost.csv'.
When I run FGL_GETFILE(l_initial_path, l_dest_path), nothing gets transferred. I can't even see a file in $FGLASDIR/tmp that was uploaded by the FileUpload widget. Am I supposed to change/add something to the source path returned by the INPUT so that the FGL_GETFILE() works?