Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Users unable to download/view pdf files View modes: 
User avatar
Member
Member
brian-hedtec - 3/16/2010 9:05:36 AM
   
Users unable to download/view pdf files
We have a Kentico 4 site set up for a client, and they have a download page where they have many pdfs listed. They just upload them as a file (and/or) into the media library and paste a link.

For some users the pdf won't download in either Firefox or IE. They just get a blank screen. We have been able to reproduce this only on IE 8, but for some it works on IE 8.

Here is a link to the public page:
http://nonprofitstaffing.com/Salary-Surveys-(1).aspx

Here is a link to a pdf that some can't open:
http://nonprofitstaffing.com/getdoc/e7ee3c3d-136c-4049-aa10-2f704f3bb4fc/SALARY-SURVEY-DC09.aspx



My question, how can I ensure all can open it? If needbe, how do I just put it in a file structure, and not through the database. I know how to link directly to the file in the media library, but how do I make it so regular CMS users can just click and get that link?



User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 3/16/2010 9:59:34 AM
   
RE:Users unable to download/view pdf files
Hello,

This issue is probably caused by the installed Acrobat pdf reader plugin. Could you please try to get the newest version of it?
You can access the media library files by generating an URL in the following format:

<domain name>/<site code name>/media/<library name>/<file name>

Best regards,
Boris Pocatko

User avatar
Member
Member
brian-hedtec - 3/16/2010 10:37:04 AM
   
RE:Users unable to download/view pdf files
Hi, thanks for the quick reply.

I was wondering about the plugin...

I know how to link the files directly... but where would I modify the code, so that when a user "paste" the link, it will use the direct format instead of the /getdoc/ way?

I was going to start poking around: CMSformControls/Selectors/SelectingDialog

But if you know an easy way, that'd be great!

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 3/16/2010 11:41:27 AM
   
RE:Users unable to download/view pdf files
Hello,

If you need such links to be generated by default when inserting some media library content just uncheck the box "Use permanent URLs" in CMS Site manager - Settings - Media libraries.

Best regards,
Boris Pocatko

User avatar
Member
Member
brian-hedtec - 3/16/2010 11:47:53 AM
   
RE:Users unable to download/view pdf files
Hiya:

That sounds perfect! The only problem is that isn't an option in site manager for me... here are the options under media library:

Media file hidden folder
Media file preview suffix
Media file allowed extensions
Check files permissions

Am I missing something?


User avatar
Kentico Support
Kentico Support
kentico_radekm - 3/17/2010 2:30:51 AM
   
RE:Users unable to download/view pdf files
Hello.

I suppose its because of you are using 4.0 version. This settings is available since version 4.1. In 4.0 there is settinng "Use permanent URLs" in URLs section (in Site Manager -> Settings), but not special for media libraries. Therefore, I would recommend you upgrade to version 4.1 using this upgrade package: http://www.kentico.com/Downloads/Updates/KenticoCMS_4_0_to_4_1.zip

Best Regards,
Radek Macalik

User avatar
Member
Member
brian-hedtec - 3/17/2010 7:57:06 AM
   
RE:Users unable to download/view pdf files
Perfect, thanks so much for your time!