Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsDocumentsDocumentsFile MIME type become "application/octet-stream"File MIME type become "application/octet-stream"
Previous
 
Next
New Post
11/10/2006 8:32 PM
 

I am having a problem with MIME type in DNN 4.3.5.  The same type of files that could be opened by the correct application inside Internet Explorer when using DNN 3.2.2 can’t be opened by the same application (by default) inside Internet Explorer when using DNN4.3.5.  We use DNN 3.2.2 for our organization’s intranet, and our intranet contains many links for user to download and view XFDL files (the Document Module is used to host those files).  Here is a description of XFDL file in case anyone needs it: http://www.w3.org/TR/NOTE-XFDL.  The content of the file has same format as XML file.  The software “PureEdge Viewer” is used to open and view the XFDL files.  In DNN 3.2.2, IE was able to auto-detect XFDL file type and launch PureEdge Viewer inside the browser.  But, after I upgraded DNN 3.2.2 to DNN 4.3.5, IE doesn’t detect XFDL file anymore and can’t launch PureEdge Viewer by default anymore.  Now the file seems to be treated like a XML file by IE and is instead displayed as a regular XML document inside the browser.  I have the following observation: The file link under DNN 3.2.2 is: “~/LinkClick.aspx?link=file.xfdl&tabid=(number)&mid=(number)”, but in DNN 4.3.5, the file link became:

“~/LinkClick.aspx?fileticket=uwIuSkpYVTA%3d&tabid=(number)&mid=(number)”.  The obvious differences between the two links are: DNN 3.2.2 uses “link” as the key of query string even for file links, but DNN 4.3.5 uses “fileticket” as the key for file links, and the value of the file name has been encrypted under DNN 4.3.5.   

By using some HTTP sniffing software I found the HTTP headers sent by DNN 3.2.2 and DNN 4.3.5 are different. When DNN 3.2.2 sends the file to the browser, the MIME type of the file is “application/vnd.xfdl”, but when DNN 4.3.5 sends the file, the MIME type of the file is “application/octet-stream”.  I don’t know what caused the difference.  Could the underlying .NET 2.0 be doing this?  But, because the MIME content-type is “application/octet-stream”, which means it is an ambiguous MIME type and IE can not determine the file extension because the file name with its extension are both encrypted, thus, I think the browser has to parse the beginning of the content of the file to determine what type of the file it is.  Once IE sees the content of the file conforms to an XML file, it decides to treat the file as an XML file. 

Can anyone give me some help on this issue?  Thanks.  I just need a way to host the XFDL file under DNN 4.3.5 so when the user clicks on the file link, the correct application can be launched inside IE to display the content of the files.  Maybe a way to decrypt the file name will do the trick?  Can DNN 4.3.5 send the correct MIME type to the browser like in DNN3.2.2?    

Note: another observation I have is all other file types like .doc and .xls are now sent with the “application/octet-stream” MIME content-type under DNN 4.3.5 as well (in DNN3.2.2 they were sent with the correct MIME type like “application/msword” and “application/vnd.ms-excel”), but because IE recognizes the formats of those types of files after parsing the content of those files, they can still be launched with the correct applications (word and excel) inside the browser.    

 
New Post
11/12/2006 7:40 AM
 
this is a known issue of file handling in DNN core framework, that hopefully will be resolved in 3.3.6/4.3.6.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/30/2010 7:42 PM
 
I wonder if this has been solved already....
 
New Post
9/16/2011 6:19 PM
 
This issue is still occurring in 5.6.2..... This is even more bizarre considering that the mime type is in the database and is known when a user hits the linkclick page.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsDocumentsDocumentsFile MIME type become "application/octet-stream"File MIME type become "application/octet-stream"


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out