[Skip to main content](#vessel-content)

#   Display the PDF file in new tab instead of "SAVE" download prompt.

##

- **[palazzetti](/forum/user/6089-palazzetti "View palazzetti's Profile")**
- [![palazzetti's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6089-palazzetti "View palazzetti's Profile") Topic Author
- [ Offline](/forum/user/6089-palazzetti)

Less More

- Posts: 5
- Thank you received: 1
-
- [](http://palazzetti.ca)
-

9 years 10 months ago [\#257970](#257970) by [palazzetti](/forum/user/6089-palazzetti "View palazzetti's Profile")  *[Display the PDF file in new tab instead of "SAVE" download prompt.](/forum/26-product-category-display/887993-display-the-pdf-file-in-new-tab-instead-of-save-download-prompt#257970 "-- url of the page with the problem -- :   palazzetti.ca/shop/bedroom/product/15-na.../category&#95;pathway-46  -- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.5 -- Browser(s) name and version -- : Safari -- Error-message(debug-mod must be tuned on) -- : Display PDF instead of download  Every product in our web site has one or more PDF's. They are uploaded as &quot;files&quot;. We want to click on a PDF and get it automatically to open another tab and display the PDF, rather than having the prompt to SAVE the PDF.  Or, if there is a prompt, we should have a custom one with 3 options: 1) SAVE 2) Open and display in new tab 3) cancel  Does anyone know how to do this?")* was created by *[palazzetti](/forum/user/6089-palazzetti "View palazzetti's Profile")*

-- url of the page with the problem -- : [ palazzetti.ca/shop/bedroom/product/15-na.../category\_pathway-46](https://palazzetti.ca/shop/bedroom/product/15-nathalie/category_pathway-46)
-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.5
-- Browser(s) name and version -- : Safari
-- Error-message(debug-mod must be tuned on) -- : Display PDF instead of download

Every product in our web site has one or more PDF's. They are uploaded as "files".
We want to click on a PDF and get it automatically to open another tab and display the PDF, rather than having the prompt to SAVE the PDF.

Or, if there is a prompt, we should have a custom one with 3 options: 1) SAVE 2) Open and display in new tab 3) cancel

Does anyone know how to do this?

The following user(s) said Thank You: [neimar](/forum/user/48602-neimar "View neimar's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODc5OTMtZGlzcGxheS10aGUtcGRmLWZpbGUtaW4tbmV3LXRhYi1pbnN0ZWFkLW9mLXNhdmUtZG93bmxvYWQtcHJvbXB0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

9 years 10 months ago [\#257984](#257984) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display the PDF file in new tab instead of "SAVE" download prompt.](/forum/26-product-category-display/887993-display-the-pdf-file-in-new-tab-instead-of-save-download-prompt#257984 "-- url of the page with the problem -- :   palazzetti.ca/shop/bedroom/product/15-na.../category&#95;pathway-46  -- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.5 -- Browser(s) name and version -- : Safari -- Error-message(debug-mod must be tuned on) -- : Display PDF instead of download  Every product in our web site has one or more PDF's. They are uploaded as &quot;files&quot;. We want to click on a PDF and get it automatically to open another tab and display the PDF, rather than having the prompt to SAVE the PDF.  Or, if there is a prompt, we should have a custom one with 3 options: 1) SAVE 2) Open and display in new tab 3) cancel  Does anyone know how to do this?")*

Hi,

The Files feature of HikaShop is to allow customers/users to download the files. So of course, it forces the download.
If you want to change that, you'll have to change the content-type header sent by HikaShop.
There are two ways you can do it:
1. You edit the lines:
header('Content-Type: application/octet-stream');
to:
header('Content-Type: application/pdf');
in the file administrator/components/com_hikashop/classes/file.php
It's easy to do, but there are several downsides: You'll loose the change when you update and it won't support other file types properly.
2. You can create a custom Joomla plugin of the group "hikashop" implementing the trigger onBeforeDownloadFile(&amp;$filename, &amp;$do, &amp;$file, $options) in your plugin and sending the file yourself to the user based on the data provided by HikaShop to the trigger function in your plugin. You can read more about creating plugins here:
[ www.hikashop.com/support/documentation/6...mentation.html#intro](https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#intro)

The following user(s) said Thank You: [neimar](/forum/user/48602-neimar "View neimar's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODc5OTMtZGlzcGxheS10aGUtcGRmLWZpbGUtaW4tbmV3LXRhYi1pbnN0ZWFkLW9mLXNhdmUtZG93bmxvYWQtcHJvbXB0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[neimar](/forum/user/48602-neimar "View neimar's Profile")**
- [![neimar's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/48602-neimar "View neimar's Profile")
- [ Offline](/forum/user/48602-neimar)

Less More

- Posts: 3
- Thank you received: 0
-
-

8 years 4 months ago [\#295121](#295121) by [neimar](/forum/user/48602-neimar "View neimar's Profile")  Replied by *[neimar](/forum/user/48602-neimar "View neimar's Profile")* on topic *[Display the PDF file in new tab instead of "SAVE" download prompt.](/forum/26-product-category-display/887993-display-the-pdf-file-in-new-tab-instead-of-save-download-prompt#295121 "-- url of the page with the problem -- :   palazzetti.ca/shop/bedroom/product/15-na.../category&#95;pathway-46  -- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.5 -- Browser(s) name and version -- : Safari -- Error-message(debug-mod must be tuned on) -- : Display PDF instead of download  Every product in our web site has one or more PDF's. They are uploaded as &quot;files&quot;. We want to click on a PDF and get it automatically to open another tab and display the PDF, rather than having the prompt to SAVE the PDF.  Or, if there is a prompt, we should have a custom one with 3 options: 1) SAVE 2) Open and display in new tab 3) cancel  Does anyone know how to do this?")*

Hi,

first option not working for me. Hika still downloading file instead of opening pdf in browser.
Can you help me for this problem?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODc5OTMtZGlzcGxheS10aGUtcGRmLWZpbGUtaW4tbmV3LXRhYi1pbnN0ZWFkLW9mLXNhdmUtZG93bmxvYWQtcHJvbXB0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

8 years 4 months ago [\#295145](#295145) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display the PDF file in new tab instead of "SAVE" download prompt.](/forum/26-product-category-display/887993-display-the-pdf-file-in-new-tab-instead-of-save-download-prompt#295145 "-- url of the page with the problem -- :   palazzetti.ca/shop/bedroom/product/15-na.../category&#95;pathway-46  -- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.5 -- Browser(s) name and version -- : Safari -- Error-message(debug-mod must be tuned on) -- : Display PDF instead of download  Every product in our web site has one or more PDF's. They are uploaded as &quot;files&quot;. We want to click on a PDF and get it automatically to open another tab and display the PDF, rather than having the prompt to SAVE the PDF.  Or, if there is a prompt, we should have a custom one with 3 options: 1) SAVE 2) Open and display in new tab 3) cancel  Does anyone know how to do this?")*

Hi,

Well, I didn't expand on this.
This modification actually doesn't change the way your browser with behave directly.
What this modification changes, is that the browser knows that the file it is downloading is a PDF file instead of a random file.
Knowing that, the browser, based on how you configured it, will download or open the file.
Now, you can also change the line:
header('Content-Disposition: attachment; filename="' . $name . '"');
to:
header('Content-Disposition: inline; filename="' . $name . '"');
in order to ask the browser to try to open the file rather than its default action for the file type you're sending.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODc5OTMtZGlzcGxheS10aGUtcGRmLWZpbGUtaW4tbmV3LXRhYi1pbnN0ZWFkLW9mLXNhdmUtZG93bmxvYWQtcHJvbXB0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[neimar](/forum/user/48602-neimar "View neimar's Profile")**
- [![neimar's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/48602-neimar "View neimar's Profile")
- [ Offline](/forum/user/48602-neimar)

Less More

- Posts: 3
- Thank you received: 0
-
-

8 years 4 months ago [\#295208](#295208) by [neimar](/forum/user/48602-neimar "View neimar's Profile")  Replied by *[neimar](/forum/user/48602-neimar "View neimar's Profile")* on topic *[Display the PDF file in new tab instead of "SAVE" download prompt.](/forum/26-product-category-display/887993-display-the-pdf-file-in-new-tab-instead-of-save-download-prompt#295208 "-- url of the page with the problem -- :   palazzetti.ca/shop/bedroom/product/15-na.../category&#95;pathway-46  -- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.5 -- Browser(s) name and version -- : Safari -- Error-message(debug-mod must be tuned on) -- : Display PDF instead of download  Every product in our web site has one or more PDF's. They are uploaded as &quot;files&quot;. We want to click on a PDF and get it automatically to open another tab and display the PDF, rather than having the prompt to SAVE the PDF.  Or, if there is a prompt, we should have a custom one with 3 options: 1) SAVE 2) Open and display in new tab 3) cancel  Does anyone know how to do this?")*

It's working

tnx

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODc5OTMtZGlzcGxheS10aGUtcGRmLWZpbGUtaW4tbmV3LXRhYi1pbnN0ZWFkLW9mLXNhdmUtZG93bmxvYWQtcHJvbXB0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")**
- [![verzevoul's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8351-verzevoul "View verzevoul's Profile")
- [ Offline](/forum/user/8351-verzevoul)

Less More

- Posts: 1195
- Thank you received: 13
-
-

4 years 11 months ago [\#337779](#337779) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Display the PDF file in new tab instead of "SAVE" download prompt.](/forum/26-product-category-display/887993-display-the-pdf-file-in-new-tab-instead-of-save-download-prompt#337779 "-- url of the page with the problem -- :   palazzetti.ca/shop/bedroom/product/15-na.../category&#95;pathway-46  -- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.5 -- Browser(s) name and version -- : Safari -- Error-message(debug-mod must be tuned on) -- : Display PDF instead of download  Every product in our web site has one or more PDF's. They are uploaded as &quot;files&quot;. We want to click on a PDF and get it automatically to open another tab and display the PDF, rather than having the prompt to SAVE the PDF.  Or, if there is a prompt, we should have a custom one with 3 options: 1) SAVE 2) Open and display in new tab 3) cancel  Does anyone know how to do this?")*

Hi,

I tried this but it opens the files in the same window istead of a new.

Thank you

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODc5OTMtZGlzcGxheS10aGUtcGRmLWZpbGUtaW4tbmV3LXRhYi1pbnN0ZWFkLW9mLXNhdmUtZG93bmxvYWQtcHJvbXB0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

4 years 11 months ago [\#337781](#337781) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display the PDF file in new tab instead of "SAVE" download prompt.](/forum/26-product-category-display/887993-display-the-pdf-file-in-new-tab-instead-of-save-download-prompt#337781 "-- url of the page with the problem -- :   palazzetti.ca/shop/bedroom/product/15-na.../category&#95;pathway-46  -- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.5 -- Browser(s) name and version -- : Safari -- Error-message(debug-mod must be tuned on) -- : Display PDF instead of download  Every product in our web site has one or more PDF's. They are uploaded as &quot;files&quot;. We want to click on a PDF and get it automatically to open another tab and display the PDF, rather than having the prompt to SAVE the PDF.  Or, if there is a prompt, we should have a custom one with 3 options: 1) SAVE 2) Open and display in new tab 3) cancel  Does anyone know how to do this?")*

Hi,

Yes.
The code change I gave before is to open the file in the browser instead of downloading it.
If you want it to be in a new tab, you need to change the line: Code:

$files[] = '&lt;a class="hikashop_product_file_link" href="' . $file-&gt;download_link . '"&gt;' . $file-&gt;file_name . '&lt;/a&gt;';

to: Code:

$files[] = '&lt;a class="hikashop_product_file_link" target="_blank" href="' . $file-&gt;download_link . '"&gt;' . $file-&gt;file_name . '&lt;/a&gt;';

in show_block_product_files.php via the menu Display&gt;Views, supposing that you're also talking about the download links on the product details page.

The following user(s) said Thank You: [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODc5OTMtZGlzcGxheS10aGUtcGRmLWZpbGUtaW4tbmV3LXRhYi1pbnN0ZWFkLW9mLXNhdmUtZG93bmxvYWQtcHJvbXB0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")**
- [![verzevoul's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8351-verzevoul "View verzevoul's Profile")
- [ Offline](/forum/user/8351-verzevoul)

Less More

- Posts: 1195
- Thank you received: 13
-
-

4 years 4 months ago [\#342690](#342690) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Display the PDF file in new tab instead of "SAVE" download prompt.](/forum/26-product-category-display/887993-display-the-pdf-file-in-new-tab-instead-of-save-download-prompt#342690 "-- url of the page with the problem -- :   palazzetti.ca/shop/bedroom/product/15-na.../category&#95;pathway-46  -- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.5 -- Browser(s) name and version -- : Safari -- Error-message(debug-mod must be tuned on) -- : Display PDF instead of download  Every product in our web site has one or more PDF's. They are uploaded as &quot;files&quot;. We want to click on a PDF and get it automatically to open another tab and display the PDF, rather than having the prompt to SAVE the PDF.  Or, if there is a prompt, we should have a custom one with 3 options: 1) SAVE 2) Open and display in new tab 3) cancel  Does anyone know how to do this?")*

Hi,

After updating to Hikashop 4.6.0 i did the above changes again but now the pdf files look like the are about to open in a new tab but they don't and they just download again.

Thank you

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODc5OTMtZGlzcGxheS10aGUtcGRmLWZpbGUtaW4tbmV3LXRhYi1pbnN0ZWFkLW9mLXNhdmUtZG93bmxvYWQtcHJvbXB0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

4 years 4 months ago [\#342693](#342693) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display the PDF file in new tab instead of "SAVE" download prompt.](/forum/26-product-category-display/887993-display-the-pdf-file-in-new-tab-instead-of-save-download-prompt#342693 "-- url of the page with the problem -- :   palazzetti.ca/shop/bedroom/product/15-na.../category&#95;pathway-46  -- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.5 -- Browser(s) name and version -- : Safari -- Error-message(debug-mod must be tuned on) -- : Display PDF instead of download  Every product in our web site has one or more PDF's. They are uploaded as &quot;files&quot;. We want to click on a PDF and get it automatically to open another tab and display the PDF, rather than having the prompt to SAVE the PDF.  Or, if there is a prompt, we should have a custom one with 3 options: 1) SAVE 2) Open and display in new tab 3) cancel  Does anyone know how to do this?")*

Hi,

If you did the change as a view override ( [ www.hikashop.com/forum/product-category-...d-prompt.html#337781](https://www.hikashop.com/forum/product-category-display/887993-display-the-pdf-file-in-new-tab-instead-of-save-download-prompt.html#337781) ), you should not need to redo it after the update and it should still work even after the update.
So I'm not clear on the situation.
Can you provide a link to a product page with the issue so that we can check on the situation ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODc5OTMtZGlzcGxheS10aGUtcGRmLWZpbGUtaW4tbmV3LXRhYi1pbnN0ZWFkLW9mLXNhdmUtZG93bmxvYWQtcHJvbXB0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")**
- [![verzevoul's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8351-verzevoul "View verzevoul's Profile")
- [ Offline](/forum/user/8351-verzevoul)

Less More

- Posts: 1195
- Thank you received: 13
-
-

4 years 4 months ago [\#342695](#342695) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Display the PDF file in new tab instead of "SAVE" download prompt.](/forum/26-product-category-display/887993-display-the-pdf-file-in-new-tab-instead-of-save-download-prompt#342695 "-- url of the page with the problem -- :   palazzetti.ca/shop/bedroom/product/15-na.../category&#95;pathway-46  -- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.5 -- Browser(s) name and version -- : Safari -- Error-message(debug-mod must be tuned on) -- : Display PDF instead of download  Every product in our web site has one or more PDF's. They are uploaded as &quot;files&quot;. We want to click on a PDF and get it automatically to open another tab and display the PDF, rather than having the prompt to SAVE the PDF.  Or, if there is a prompt, we should have a custom one with 3 options: 1) SAVE 2) Open and display in new tab 3) cancel  Does anyone know how to do this?")*

Hi,

I have an override yes, at every Hikashop update i just rechange the code in the file administrator/components/com_hikashop/classes/file.php and it worked but not this time.

This is a product to check

[ www.e-develop.gr/el/products/tools-compo...category\_pathway-172](https://www.e-develop.gr/el/products/tools-components/hakko/product/2488-hakko-fx-888d-%CF%88%CE%B7%CF%86%CE%B9%CE%B1%CE%BA%CF%8C%CF%82-%CF%83%CF%84%CE%B1%CE%B8%CE%BC%CF%8C%CF%82-%CE%BA%CF%8C%CE%BB%CE%BB%CE%B7%CF%83%CE%B7%CF%82-%CE%BC%CF%80%CE%BB%CE%B5-%CE%BA%CE%AF%CF%84%CF%81%CE%B9%CE%BD%CE%BF/category_pathway-172)

Thank you

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODc5OTMtZGlzcGxheS10aGUtcGRmLWZpbGUtaW4tbmV3LXRhYi1pbnN0ZWFkLW9mLXNhdmUtZG93bmxvYWQtcHJvbXB0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

4 years 4 months ago [\#342698](#342698) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display the PDF file in new tab instead of "SAVE" download prompt.](/forum/26-product-category-display/887993-display-the-pdf-file-in-new-tab-instead-of-save-download-prompt#342698 "-- url of the page with the problem -- :   palazzetti.ca/shop/bedroom/product/15-na.../category&#95;pathway-46  -- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.5 -- Browser(s) name and version -- : Safari -- Error-message(debug-mod must be tuned on) -- : Display PDF instead of download  Every product in our web site has one or more PDF's. They are uploaded as &quot;files&quot;. We want to click on a PDF and get it automatically to open another tab and display the PDF, rather than having the prompt to SAVE the PDF.  Or, if there is a prompt, we should have a custom one with 3 options: 1) SAVE 2) Open and display in new tab 3) cancel  Does anyone know how to do this?")*

Hi,

You made a typo.
You wrote
header('Content-Type: application/pdfm');
instead of
header('Content-Type: application/pdf');

Please double check your modifications.

The following user(s) said Thank You: [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODc5OTMtZGlzcGxheS10aGUtcGRmLWZpbGUtaW4tbmV3LXRhYi1pbnN0ZWFkLW9mLXNhdmUtZG93bmxvYWQtcHJvbXB0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.098 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
