Title: [Plugin: WP Document Revisions] Dynamic document upload path
Last modified: August 20, 2016

---

# [Plugin: WP Document Revisions] Dynamic document upload path

 *  Resolved [bigspring](https://wordpress.org/support/users/bigspring/)
 * (@bigspring)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-document-revisions-dynamic-document-upload-path/)
 * 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/](http://wordpress.org/extend/plugins/wp-document-revisions/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Ben Balter](https://wordpress.org/support/users/benbalter/)
 * (@benbalter)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-document-revisions-dynamic-document-upload-path/#post-2987171)
 * 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.
 *  Thread Starter [bigspring](https://wordpress.org/support/users/bigspring/)
 * (@bigspring)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-wp-document-revisions-dynamic-document-upload-path/#post-2987172)
 * 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&#8217](http://somedomain.com&#8217););
   
   define(‘WP_SITEURL’,’[http://somedomain.com&#8217](http://somedomain.com&#8217););
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-document-revisions_6c6c6c.svg)
 * [WP Document Revisions](https://wordpress.org/plugins/wp-document-revisions/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-document-revisions/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-document-revisions/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-document-revisions/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-document-revisions/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [bigspring](https://wordpress.org/support/users/bigspring/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-wp-document-revisions-dynamic-document-upload-path/#post-2987172)
 * Status: resolved