Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, you should never share usernames or passwords here in the forum.

    Can you disable all other plugins except ours then carry out another test. Let me know what happens.

    Thank you

    Hi @dhazard!

    The delivery of the download PDF instead of opening could also be prevented by the browser or the webserver.

    Test if these lines in the .htaccess at root of the web solve the problem:

    
    <FilesMatch "\.(?i:pdf)$">
      ForceType application/octet-stream
      Header set Content-Disposition attachment
    </FilesMatch>
    

    If you are using more file-types, use a list like:

    <FilesMatch "\.(?i:pdf|mp4|mp3)$">
      ForceType application/octet-stream
      Header set Content-Disposition attachment
    </FilesMatch>

    Regards

    Thread Starter dhazard

    (@dhazard)

    The login/pass provided was purely for testing.

    Adding the info to the .htaccess fie did not work

    I have not tried deactivating other plugins yet but is there somewhere in the code i can just add target=”_blank” for all files? (As we are only using this for pdfs)

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi,

    I just finished carrying out a test in my dev site.

    This is what I did.

    – I created a new download with a pdf file.
    – I enabled Open download in a new window. located under Miscellaneous Download Item Properties.
    – I saved the download.
    – I added a new test post and inserted the download shortcode using the SDM Downloads Button. I also selected the option to open up the download in a new window.
    – The following is the shortcode it created.

    
    [sdm_download id="20" fancy="0" new_window="1" color="green"]

    I then tested the download post in the following browsers using Windows 10.

    Browsers Used:

    1) Firefox
    2) Microsoft Edge
    3) Google Chrome
    4) Internet Explorer
    5) SeaMonkey

    The download pdf file opened up in a new tab in all the browsers. So I can confirm this is working correctly in my dev site.

    Kind regards

    Thread Starter dhazard

    (@dhazard)

    Ah, the shortcode code is not changing when i do that but obviously I can just add the new window part to my code.

    Thanks

    Thread Starter dhazard

    (@dhazard)

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘I have “Open download in a new window” selected, not working’ is closed to new replies.