WordPress.org

Ready to get started?Download WordPress

Forums

WP Document Revisions
force attachment downloads (2 posts)

  1. toimisto
    Member
    Posted 11 months ago #

    Im having trouble with the usual htaccess force download and the plugin. Is there a way to force attachment to be saved from the frontend instead opening them in the browser (fex. pdf files)

    Thanks!

    http://wordpress.org/extend/plugins/wp-document-revisions/

  2. cojennin
    Member
    Posted 10 months ago #

    I would check out the following filter:
    https://github.com/benbalter/WP-Document-Revisions/blob/master/wp-document-revisions.php#L749

    If you return false, it should force a "save-as" instead of opening in the browser.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.