Posted: 11 May 2017 10:05 EDT Last activity: 16 Oct 2018 12:03 EDT
View Attachment in new browser tab
I would like to be able to default the view of my work attachments in a new browser tab. Currently the OOTBF calls Activity "DisplayAttachFile" this opens the Save File window prompt. I would like to simply open the attachment in a new browser tab without asking to download. Any ideas for a quick win?
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
I am not able to achieve it. Would be great if you elaborate the steps which I have to modify in the HTML Fragment: openFileAttachment which calls the Work- DisplayAttachFile activity which is triggered to download the content. The doc (word) file gets downloaded when this activity is called by default.
P.s: we use Chrome as the default browser.
Posted: 4 years ago
Posted: 11 Dec 2017 8:09 EST
Bapana Silpi (Bapas)
Lead System Architect
See the Javadocs for 'sendFile' - that last argument ("aSendForDownload")governs how downloads are handled by browsers (its more of a 'hint' in my understanding - using the 'Content-Disposition' flag in HTTP headers).
The Javadocs are under 'Designer Studio | Engine API', then on the left click-through 'PublicAPI' - sendFile (there are several signatures for it) is listed under that.