HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


URL-links comcode page

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#89160 (In Topic #18042)
Avatar

Fan in action

No dialog box for pdf files.

Hey. When I make a URL link in comcode page and select the ".pdf" with the target "_parent" but then no dialog box appears where i can chose save as.. or open with... etc. But it work for all other document types (.doc .ppt .xls). Pfd-files allways open sam window.

/Mathias


Back to the top
 
Posted
Rating:
#89162
Avatar



Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#89164
Avatar

Fan in action

Thanks for the quick reply Chris. Should I create a .htaccess file and copy it as you view the link? and then send file via ftp to the server (root)? or what should I do?

regards
Mathias
Göteborg
Back to the top
 
Posted
Rating:
#89165
Avatar

The tutorial will tell you what rules to add to an existing .htaccess file. Probably use ocPortal's default (recommended.htaccess) and paste in extra lines.

Unless instructed, browsers determine what to do with file extensions. It's not to do with how you link to the file, it is to do with the "mime-type" of the file, which the server decides, and how the browser decides to handle that mime-type. The .htaccess rule should change it to "application/octet-stream" which is a bit like saying "ignore the mime-type, treat this as a download". I think another way it could be done is to add a .htaccess rule to explicitly tell the browser how to handle the file, but I don't think the example does that.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#89174
Avatar

Fan in action

Hello again Chris and thanx. I have try you fix but pdf-files i open inside browser itself. I check system and its Linux. It may have to do with Linux it that it does not work?

System Linux srv101 2.6.26-2-vserver-amd64 #1 SMP Thu Sep 16 16:20:47 UTC 2010 x86_64
Server API CGI/FastCGI
Back to the top
 
Posted
Rating:
#89177
Avatar

That's as much as I can say on it without getting into stepping through your individual situation, which I'd have to do in a paid support ticket.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#89178
Avatar

Community saint

It might be your browser. Do you have an Adobe Acrobat plugin?

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: