WordPress.org

Ready to get started?Download WordPress

Forums

WP-Filebase Download Manager
[resolved] Force PDF (or any file) download (3 posts)

  1. Yatish Bhula Madhav
    Member
    Posted 7 months ago #

    Hi there,

    This is so far a really great plugin. Does what is needed of it right now. May upgrade and use and contribute more - I am still a bit new in WP.

    Though, I am trying to get files to download automatically/forcibly, not open in the browser. I am using PDF's and would like users to download/save to a folder the PDF and not provide them with instructions to 'save as' ...

    Thanks all in advance. Chat/comment soon :)

    http://wordpress.org/plugins/wp-filebase/

  2. helirexi
    Member
    Posted 7 months ago #

    hi
    you may try enable “Always Force Download” in WP-Filebase >> Settings >> Download settings. Here is one tip
    And maybe another tip also from Fabian's (plugin author)site:

    To force PDF download on FTP sites create a .htaccess file in the FTP root directory:

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

    I copy-pasted from here
    I always use his site for documentation and tips - recommending!

  3. Yatish Bhula Madhav
    Member
    Posted 6 months ago #

    Hi there helirexi,

    Apologies for the late response. Great, thank you. I'm not sure how I saw past the “Always Force Download” setting - enabling that did the trick.

    Thank you

Reply

You must log in to post.

About this Plugin

About this Topic