Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

.msg File Uploads/Opening via Link

New Here ,
May 25, 2011 May 25, 2011

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.

2.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Guide , May 25, 2011 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.

Translate
Guide ,
May 25, 2011 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
May 25, 2011 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 25, 2011 May 25, 2011
LATEST

Thanks, works as expected now.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources