WordPress.org

Ready to get started?Download WordPress

Forums

Multisite media upload folder not updating (9 posts)

  1. swhinck
    Member
    Posted 2 years ago #

    I have two themes installed and want their media folders to be separate.
    I created two directories:
    wp-content/uploads/theme1
    wp-content/uploads/theme2

    I go to Network Admin, selected the site one by one, and changed the setting:

    Fileupload Url: http://mysite.com/wp-content/uploads/theme1
    and

    Fileupload Url: http://mysite.com/wp-content/uploads/theme2

    Everything works great for site 1, when I upload media, it dumps into the correct directory.

    But for some reason, on site 2 it is uploading the media to "files" directory, which i guess is a virtual directory setup by wordpress for multisites.

    Any idea why it would work for one but not the other?
    And how can I get the second site to upload to the directory I would like it to?

    Any help appreciated!
    Thanks

  2. swhinck
    Member
    Posted 2 years ago #

    It appears as though the "files" virtual directory is actually "wp-content/blogs.dir/".

    Still dont see how to override this.

    why is there a setting called "Fileupload Url" in site settings if it is not going to override this directory?

  3. You're doing things the hard way, and I have a feeling you're misunderstanding media folders and theme folders.

    Themes

    Every theme has it's own folder in /wp-content/themes/themename

    Each theme is separate from each other, so each has it's own images etc. You can use the same theme on as many sites in your network as you want.

    Media Files

    By default, all media files are per site and stored in /wp-content/blogs.dir/<blog number>/files/etc.

    Each upload directory is sacrosanct and separate from each other. No crossovers.

    What happens when you upload a new header for your theme in site #2?

    This is the next logical question :) It goes in /wp-content/blogs.dir/2/files/2011/07/headerfile.jpg

    It's saved per site

  4. swhinck
    Member
    Posted 2 years ago #

    ok so basically your saying that the media is going to be separated per site no matter and I should just allow WordPress to do this work for me?

    Rather than tell wordpress where i want the images uploaded, just kick back and let it take care of that on its own basically...

    Ok sounds good, I am only a week into wordpress so yea, im somewhat lost still =)

    Ill get there...

    Thanks for the help!

  5. yes, just let it works its magic. :)

  6. Exactly :) Trust the tool :)

    (You actually can overwrite the settings, but it's a slightly annoying and complicated process, and in the end, there's no need. Even if you want to use a CDN to off load images, there are plugins that can do the hard work for ya!)

  7. brent3721
    Member
    Posted 2 years ago #

    I agree that this does work great in some situations, but others not so much. We're making a .co.uk and .com.au version of our site and are using multisite to serve up the same template files to them (which works great) but can't share a media area which is kind of a bummer.

    If you can share themes between sites why can't you share media? I'm sure it's a technical restriction related to how MU was originally set up to host separate totally different blogs, but it's limiting for when you want to use multisite for multiple similar sites.

    If the info for the images was just stored in the database tables for which sites have the image linked it doesn't seem like this would be a tough fix to the core? I did see another thread where many people were requesting the same functionality, do you think this could be suggested for a future version of multisite?

    brent
    @
    mimoYmima.com

  8. As Ipstenu said above, you already can overide it and dump media wherever you like.

    but it's a slightly annoying and complicated process,

    There's a line you can declare in the wp-config file.

  9. If you can share themes between sites why can't you share media? I'm sure it's a technical restriction related to how MU was originally set up to host separate totally different blogs, but it's limiting for when you want to use multisite for multiple similar sites.

    Because WPMU and Multisite were intended to be for you to run your own version of WordPress.COM. Separate sites. No cross contamination.

    (the complicated process I was thinking of was going in to edit each existing site settings via network admin -> sites -> edit and change the URLs etc, AND make sure you know to change the .htaccess so if you do away with /files/whatever, you have your new one set up.)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.