Downloading file form SC form apps running on PHP >= 7.1.2 is not working

Can anyone please confirm if in a production environment running on PHP >= 7.1.2 files can be downloaded from SC Form apps??

All my SC form apps work fine to upload files, but when on the same forms I click on the filename link (of a file I just uploaded!) nothing happens.

The issue is only with forms apps: if the same files are accessed via SC grid apps, downloads are successful.

Also downloading files works correctly using the SC forms apps in the dev environment (php 7.0.x embedded with SC)

<bump>

Is anyone using SC form apps, with file fields, able to confirm everything is working as expected when deployed on PHP >= 7.1.2 ?
(see previous post)

To clarify better, in the image below “test123.docx” is the kind of link NOT working in production: clicking on it nothing happens.
And the same form that is NOT allowing me download the file, was just used to successfully upload that file (the file was written to the server file system)

[ATTACH=CONFIG]n82616[/ATTACH]

While a link to the same test123.docx file WORKS perfectly in a grid app, as the one in the image below: clicking on the link the file is downloaded.
(the grid app is based on the same db table and with the same Documents Path and Subfolder settings as the form app)

[ATTACH=CONFIG]n82619[/ATTACH]

Image1.png

Image2.png

I was able to make the form work by just changing this part of the SC generated form code (file [form_app_name]_doc.php)


   if (!empty($_GET))
   {
       foreach ($_GET as $nmgp_var => $nmgp_val)
       {
            $$nmgp_var = NM_utf8_decode(NM_utf8_urldecode($nmgp_val));
            $$nmgp_var = str_replace('**Plus**', '+', $$nmgp_var);
            $$nmgp_var = str_replace('**Jvel**', '#', $$nmgp_var);
            $$nmgp_var = str_replace('**Ecom**', '&', $$nmgp_var);
            $$nmgp_var = str_replace('**Perc**', '%', $$nmgp_var);
       }
   }

to this one, that I coped from the SC generated code for the grid app (file [grid_app_name]_doc.php)


if (!empty($_GET))
   {
       foreach ($_GET as $nmgp_var => $nmgp_val)
       {
            $$nmgp_var = $nmgp_val;
       }
   }

After this change to the file [form_app_name]_doc.php, now when I click on the file link in the form, the file download is successful

But this change has to be redone everytime I deploy the form app :frowning:

[SIZE=14px]@NetMake[/SIZE]: can anyone look into this issue?
Maybe NM_utf8_decode has some code that is not working on PHP >= 7.1.2?
Better still, can I suggest you use the same code to handle files in both Form and Grid apps, basing it on the current code for grid apps (since that is the one that is working)?