richard.herbert
04/04/2024, 2:20 PM<cfcontent type="application/vnd.openxmlformats-officedocument.wordprocessingml.document" file="./file-sample.docx">
but it tries to save the file locally. I just want to open the document with my local Word app?Adam Cameron
<cfheader> thing you need to do. Finds answer written by self.
https://stackoverflow.com/a/71781957/894061Michael Schmidt
04/04/2024, 2:50 PMrichard.herbert
04/04/2024, 3:13 PM<cfheader> and <cfcontent> when displaying non-html files.
I've always thought that <cfcontent> said "use this app to open the file" in <cfheader>
I guess I wouldn't expect inline to work with a Word doc as I guess the browser doesn't know how to render it like it does with pdf files nowadays.
So I guess I can't get the browser to open Word by itself and stream the nominated file to it.Adam Cameron
Content-Disposition header has.
But at the end of the day it's not up to you, it's up to the browser.Adam Cameron
<cfcontent> , as you have) would be enough.
I've got my browser set to NEVER try to open anything in an external app. So you can send all the headers you like, but I'll still just save the file, and then decide what to do with it, thanks.richard.herbert
04/04/2024, 3:32 PM