Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

DotNetNuke Marketplace
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Biz Modules provides professional business modules and solutions for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Documents Modul...  Download links don't download files
Previous Previous
 
Next Next
New Post 9/25/2006 12:53 PM
User is offline Ross Keatinge
7 posts
10th Ranked


Re: Download links don't download files 
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
User is offline Jake helfert
4 posts
10th Ranked


Re: Download links don't download files 
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
User is offline Zhiqiang Chen
2 posts
10th Ranked


Re: Download links don't download files 
Thx a lot tetranz. Now I have proper inline pdf display
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Documents Modul...  Download 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.

 


Willhite & Sharron Realtors
Exemplary service for your Seattle Real Estate needs. It's what you deserve from your Realtor®!
www.alkihomes.com
PointClick DotNetNuke Solutions
PointClick Technologies provides high-end DNN Hosting for businesses.
PointClick.Net Hosted Solutions
Active Modules, Inc.
Creators of Active Forums, the best forum module for DotNetNuke
www.activemodules.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP