Skip to main content
Nintex Community Menu Bar
Question

Attachment control to open files in browser

  • March 20, 2023
  • 1 reply
  • 185 views

ZeeshanNasim
Forum|alt.badge.img+2

Hi All,

Is there a way to open the attachments in browser rather than downloading it ? 

File stored in SQL table. K2 attachment control to add/remove attachment.

Tx,

Zeeshan

Translate
Did this topic help you find an answer to your question?

1 reply

Forum|alt.badge.img+7
  • Nintex Employee
  • 40 replies
  • March 27, 2023

It depends on the file type:

 

If they are plain text, PDFs or images you can use DataURLs . To do this extract the base64 portion of the file xml and add it to the data URL with the correct media type

If you are using SharePoint Online you can embed Office Documents in an iFrame. 

It is also worth googling for a JavaScript library that can help you with this as there are a number of possible options to tackle this and you could inject one of those into your form to help.

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings