Forcing Download of a File in the Browser


How can I force the browser to download a file that I put on an Omni CMS page?


Currently the WYSIWYG Editor strips that attribute out, however if you hold down the shift key and click on the green edit region button, it will take you to an inline editor. Within the editor, you will need to click on the Source Code < > button and add download="FILENAME.EXT" within the <a href=""> tag.

Example: <a href="{{f:XXXXXXX}}" title="sample pdf file">Sample PDF File</a> will turn into <a href="{{f:XXXXXX}}" title="sample pdf file" download="sample-pdf-file.pdf"> instead.


Article ID: 1424
Thu 4/30/15 7:48 AM
Sat 5/1/21 6:56 PM