HomeHomeDotNetNuke Forg...DotNetNuke Forg...Module ForumsModule ForumsDocumentsDocumentsDownload links donDownload links don't download files
Previous
 
Next
New Post
9/25/2006 12: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 1: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 10:18 AM
 
Thx a lot tetranz. Now I have proper inline pdf display
 
Previous
 
Next
HomeHomeDotNetNuke Forg...DotNetNuke Forg...Module ForumsModule ForumsDocumentsDocumentsDownload links donDownload links don't download files


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

Attend A Webinar
Free Demo Site
Download DotNetNuke Professional Edition Trial
Have Someone Contact Me
Have Someone Contact Me
DotNetNuke Store

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

PowerDNN
r2integrated
Telerik JustCode Free

DotNetNuke Scoop!

Sponsors

DotNetNuke Corporation

DotNetNuke Corp. is the steward of the DotNetNuke open source project, the most widely adopted Web Content Management Platform for building web sites and web applications on Microsoft. Organizations use DotNetNuke to quickly develop and deploy interactive and dynamic web sites, intranets, extranets and web applications. The DotNetNuke platform is available in a free Community and subscription-based Professional and Enterprise Editions with an Elite Support option. DotNetNuke Corp. also operates the DotNetNuke Store where users purchase third party apps for the platform.