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  |  

Maximum ASP
  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Documents Modul...  Download links don't download files
Previous Previous
 
Next Next
New Post 9/25/2006 1: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 2: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 11: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.

 


DotNetNuke Hosting Provider UK
UK leading DotNetNuke Hosting provider. Owned and operated by a Microsoft Gold Certified Partner.
www.DNN-Portals.co.uk
Alliance Systems & Programming Inc
Alliance is not just our name... it's how we do business. We partner with our clients, learning their business processes and standards and then applying our expertise to help them improve their workflow and profitability.
www.Alliancesys.com
Customer Connect
Customer Connect provides cutting edge solutions that deliver sales, marketing and customer service results.
www.customer-connect.com

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