Save files to disk

I would compress the file as a zip and then using (as Daniel says) the url:

${resourcesFolderName}/FILENAME.pdf.zip

or just

${resourcesFolderName}/FILENAME.zip

and placing it in a link tag or connecting it to a button with a “new function…” javascript on click as follows:

window.open("${resourcesFolderName}/FILENAME.zip", "_blank");

should enable the document to download immediately.

NOTE If you go the route of using the *download attribute then it won’t work in Safari or IE

1 Like