Skip to main content
Participant
May 25, 2011
Answered

.msg File Uploads/Opening via Link

  • May 25, 2011
  • 1 reply
  • 2780 views

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.

    This topic has been closed for replies.
    Correct answer Owainnorth

    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.

    1 reply

    Owainnorth
    OwainnorthCorrect answer
    Inspiring
    May 25, 2011

    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.

    Participating Frequently
    May 25, 2011

    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.