Hello,
what script can I use to open a download file from an IFS path?
I would like to use it at the click of a button.
thank you very much
Script for download file
Moderator: jeanmichel
Re: Script for download file
Hi RobCol,
Once you bring the button to the screen, you can add for example this code in the onClick:
to download in this case a sample gif ur other file in the IFS:
Once you bring the button to the screen, you can add for example this code in the onClick:
Code: Select all
var hiddenElement = document.createElement('a');
hiddenElement.href = '/ts/skins/images/examplephoto.gif';
hiddenElement.target = '_blank';
hiddenElement.download = 'examplephoto.gif';
hiddenElement.click();