Copy link to clipboard
Copied
I have a ColdFusion app that allows users to upload attachments, normally text files, Word docs, Excel files, and images. These uploaded attachments can then be opened from inside the ColdFusion app by clicking on the generated links to each attachment. Works great, no issues until somebody decided that they needed to upload Outlook .msg files. The .msg file uploads to the server but will not open when the link is clicked, get a 404 file not found error. I can browse to and open the file.
So, is there a trick to open a .msg file via a web link? I would expect it to work like a Word doc, launch Outlook and open the file.
1 Correct answer
You'll need to set up the webserver to handle the MIME type for a .msg file, that's how it knows what to do with it.
Copy link to clipboard
Copied
You'll need to set up the webserver to handle the MIME type for a .msg file, that's how it knows what to do with it.
Copy link to clipboard
Copied
What Owain said, or you can use <cfcontent> to serve the file that way you don't have to worry about adding tons of different possible MIME types to your webserver.
Copy link to clipboard
Copied
Thanks, works as expected now.

