Support » Plugin: WP Document Revisions » [Plugin: WP Document Revisions] Dynamic document upload path

  • Resolved bigspring


    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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ben Balter


    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.

    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:


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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP Document Revisions] Dynamic document upload path’ is closed to new replies.