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

  1. bigspring
    Posted 4 years 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?


  2. Ben Balter
    Plugin Author

    Posted 3 years 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
    Posted 3 years 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:


    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

  • WP Document Revisions
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.