Support » Networking WordPress » Where are upload files stored?

  • Resolved gilliancs

    (@gilliancs)


    I’ve installed multisite (sub-folder version), made a first sub-site and everything’s working great. However, I can’t find the upload files on my server.
    I installed 2 folders in wp-content, blogs and blogs.dir (I wasn’t sure if .dir is a windows suffix for a folder and I reckoned I’d find out by seeing into which of the two stuff got put). But they are both empty.
    When I hover over an image I have uploaded it gives me
    network_url/subsite_url/files/2011/01/imagename.jpg
    Any ideas where they might be?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    Lead Plugin Wrangler

    Yeah, you want blogs.dir

    Your FIRST site, however, will upload in wp-content/uploads/

    I’ve deleted the blogs folder and uploaded an image to the main site, but there’s nothing new in wp-content and blogs.dir is still empty. They must be going somewhere or the sites wouldn’t work.

    Solved this one: I quit Transmit (my ftp program) and restarted and now I can see the folders OK. It’s useful to know the main site files are in wp-content. Thanks.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    Lead Plugin Wrangler

    WordPress does a bit of trickery.

    EVERYTHING gets urls of domain.com/sitename/files/whatever

    But Site #1 (main site) is wp-content/uploads/YYYY and every other site is wp-content/blogs.dir/#/files/YYYY 🙂

    Ipstenu, any way around site ID 1 going to uploads. I’d like it in blogs.dir so I can take advantage of the auto-redirecting to /files/ but can’t figure out how to get site 1 to do it.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    Lead Plugin Wrangler

    Sure 🙂

    I wrote a bit of a tutorial for this: http://code.ipstenu.org/2010/moving-your-images-for-multisite/

    That said, the files redirection should still work for the uploads folder, and you don’t HAVE to change anything.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Where are upload files stored?’ is closed to new replies.