Currently when we click on a pdf link in Confluence/Wiki the PDF gets downloaded. Is there an option to Open directly or view directly? Is it a security issue? Other websites have this option. Can we change Confluence link behavior?
If not, is there a Adobe macro to view instead of download?
Also is it possible to have a dynamic anouncement section on the main dashboard?
we do not want to update the Dashboard page but want announcements viewable in a corner similar to the Activity Macro
In e.g. Firefox it is in the menu: Tools > Options > Application
There you search for the right "Content Type" and choose the appropriate "Action".
Please try this option I just developed.
Confluence has a pdf preview function which we can access via an iframe.
Here is how:
1. In edit add the pdf file to the page using ctrl + m.
2. Choose the pdf if already attached or upload a new pdf now.
3. Save the page.
4. On the viewing page you will see the pdf as a thumbnail embedded on the page.
5. Click the pdf thumbnail and the advanced pdf viewer will load.
6. Copy the url of the viewer
7. Edit the page again. Back in the edit screen delete the thumbnail and instead create an html macro and paste the following iframe code in with your url from step 6 replacing ENTER THE URL IN HERE with your url (leave the apostrophes)
<style>.embed-container { position: relative; padding-bottom: 100%; height: 0; overflow: hidden; max-width: 100%; } .embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }</style><div class='embed-container'><iframe src=' ENTER THE URL IN HERE' style='border:0'></iframe></div>
8. Click save
You will now have a fully functioning viewer with download and even pdf edit options.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Confluence behaviour has changed as of 5.1: https://confluence.atlassian.com/display/CLOUDKB/Attachments+no+Longer+Open+in+Browser+-+Users+are+Prompted+to+Download+File+Instead
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am upgrading confluence from 5.1 to 5.6.5. On 5.1 version, clicking link to attached PDF file while show the file in browser, but on 5.6.5 it trigger download (test on same browsers, Safari/Firefox/Chrome, on Firefox, for PDF it is set to 'Preview in Firefox')
Check with curl, it show the HTTP header for new version has 'X-Content-Type-Options: no sniff'. Is this the cause? any way to fix/workaround it?
Both HTTP headers have: Content-Type: text/html;charset=UTF-8, which seems wrong.
The content type of attachment is application/pdf on both server.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Currently when we click on a pdf link in Confluence/Wiki the PDF gets downloaded
How a PDF gets viewed is usually determined by the browser.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.