Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Standard WordPress sites, at least of the versions of WP I've tested, store files uploaded via the Media Manager under wp-content/uploads/

Where do these same files get stored in MU sites and how can you obtain a reference to this folder via script from functions.php?

Is the location different depending on which version of WP or WPMU is installed?

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

Have a look at the following page and see if that answers the question for you... ;) https://core.trac.wordpress.org/browser/tags/3.0.1/wp-includes/ms-default-constants.php

share|improve this answer
    
/wp-content/blogs.dir/[siteid]/files/ –  Scott B Nov 18 '10 at 17:03
    
Perhaps another question, but related: How to determine, from functions.php, if the site is WPMU or standard? And how to get siteid via script? {$wpdb->blogid} ? –  Scott B Nov 18 '10 at 17:05
    
See Andrea's answer, and i think she's referring to wp_upload_dir() if i'm following correctly... :) –  t31os Nov 18 '10 at 23:25
add comment

Do a check for is_site_admin - if it's true, the network is enabled.

If you use the usual WP uploads folder function call, it will magically find the multisite ones as well. (I can't remember it off the top of my head)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.