Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.



Note
titleContent Freeze

As of July 25th, 2023, there is a content freeze on this page.

This API initiates a download from a file in the Integrated File System (IFS) to the browser. 

...

Code Block
javascript
javascript

pui.download({ "id":  "/usr/share/accounting/invoice12345.pdf" });

...

Code Block
javascript
javascript

pui.download({ "id":  "/images/products/54321.jpg", "inline": true, "contentType": "image/jpeg" });

...

Code Block
javascript
javascript

pui.download({ "id":  "itemrpt", "inline": true, "contentType": "application/pdf" });

...