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 ForumsDocumentsDocumentsDownload links donDownload links don't download files
Previous
 
Next
New Post
9/25/2006 3:53 PM
 
Hi all

I'm not sure if this relates exactly to the issues people have been having but I've had trouble with inline pdfs not working as they should with DNN 4.3.5 so I have done some core debugging. I first examined the output using SamSpade and discovered that the Content-Type is always octet-stream. There are two reasons for this.

The ContentType is set, dependent on file extension, in DownloadFile() in FileSystemUtils.vb line 764 but in WriteStream() at FileSystemUtils.vb line 410 the ContentType is hardcoded as octet-stream, overwriting the previous setting. I don't know what else it might affect so I have fixed this in a kludgy way by making another overload of WriteStream() so I can choose to write the Content-Type or not.

The other issue with inline pdfs is that there is some code at FileSystemUtils.vb line 757 that always forces a download no matter what. There must have been a reason for it but in my experience, there is no need to handle pdfs differently.

With both of these issues fixed, inline and download pdfs work perfectly for me in both FireFox and I.E. with the Adobe reader.

Ross

 
New Post
9/28/2006 4:49 PM
 
As an FYI, I was having the same issues with PDF's using DNN 4.3.4 and IE6&7rc1. After upgrading to DNN 4.3.5 the problems appear to have gone away :)

-Jake
 
New Post
10/6/2006 1:18 PM
 
Thx a lot tetranz. Now I have proper inline pdf display
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsDocumentsDocumentsDownload links donDownload links don't download files


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.

Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out