WordPress.org

Ready to get started?Download WordPress

Forums

WP Document Revisions
[resolved] Dynamic document upload path (3 posts)

  1. bigspring
    Member
    Posted 1 year ago #

    Great plugin! Extremely well written and a pleasure to work with.

    One issue we're having is working with uploading documents before we go into production. We have 3 developers / designers that work on differenet machines, each with a local copy of the website, and a final staging copy on our development server.

    The issue we're having is that the document upload path is only capable of dealing with a single path, so only one person can upload files.

    You get a similar issue with WP when running a local and staging version of the site as the home_url and site_url options are held in the database, so we use a simple hack in wp-config.php to override the home_url and site_url dependent on the http referrer.

    I wondered if there's a way we can do the same for the document upload path? Or is there another solution?

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

  2. Ben Balter
    Member
    Plugin Author

    Posted 1 year ago #

    I would put a constant in wp-config as you do normally, then put a plugin to mu-plugins to look for that constant, if present, and filter the document upload folder.

  3. bigspring
    Member
    Posted 1 year ago #

    Sounds like a good plan. It's kind of what I was hoping to to do, but what I'm not sure about is what constant to use to overwrite the document upload path.

    For example, I use these for the home / site url:

    define('WP_HOME','http://somedomain.com');
    define('WP_SITEURL','http://somedomain.com');

    Do you know what the constant is for the document upload path?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.