• Resolved Brett Shumaker

    (@brettshumaker)


    How are plugins like NextGen Gallery able to write to the blogs.dir folder? I’m just curious as to how this works because a theme I’m using is trying to write a css file to the theme folder, which obviously doesn’t work in multisite.

    Anyone have any resources on this? I’ve spent quite a bit of time on Google and coming up empty.

    Thanks in advance.

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

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    They’re (properly) calling wp_upload_dir() which dynamically adjusts 🙂

    http://codex.wordpress.org/Determining_Plugin_and_Content_Directories

    Thread Starter Brett Shumaker

    (@brettshumaker)

    That’s awesome. I don’t know why I couldn’t find that.

    Thanks, so much for pointing it out!

    Thread Starter Brett Shumaker

    (@brettshumaker)

    I messed around with this a little bit today and found that, yes, I can now save files to the site’s uploads directory if I want but what about writing to the blogs.dir folder? I feel like I should be writing my files there instead of the uploads since the files I’m writing aren’t true ‘uploads’ as far as WordPress is concerned.

    So what you’ve shown me works but I just want to make sure I’m doing it right.

    Thanks again.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Writing files to blogs.dir’ is closed to new replies.