Forcing Download of a File in the Browser

Issue/Question

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

Resolution

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.

Details

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