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

    (@ipstenu)

    ?????? Advisor and Activist

    Using the domain.com/files URL is fine, just change the path to where you want to store it.

    1. DO NOT try and store it in domain.com/files on your server. Use that as an alias. If you make a files folder, things will get a bit hanky.
    2. Even if you do this, you won’t be able to cross-use images. They will remain per site.
    3. Why?

    I’m asking why because … Even though your images are stored in domain.com/wp-content/blogs.dir/1/files their URL will still be domain.com/files and that’s what people on the font end will see. Basically … If you leave it as default, it will LOOK like it’s in files and no one will be the wiser.

    You know, a couple of years ago I had a client who was using Dean’s FCK Editor in an mu install, and the image upload button it had completely disregarded the mu part. And stuffed all the images in one folder that everyone could access. Now, you didn’t get any thumbnails, but it *was* a global dumping ground… ??

    Wonder if it still works like that…

    Thread Starter calutateo

    (@calutateo)

    Thanks for the reply, ipstenu!

    I am still not quite sure what values these field should contain:
    – Upload Path
    – Upload Url Path
    – Fileupload Url

    My idea is that all blogs should use the same folder (from an admin point of view). I would like to have one single media library that is shared by all blogs. I that possible?

    Waht people in the front end will see it not that important.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    I would like to have one single media library that is shared by all blogs.

    THAT you will not get by having them all dumped in one folder. All you’ll get is … the files in one folder.

    You could try Dean’s FCK Editor but a quick google for ‘wpmu shared media library’ comes up empty.

    Why do you want them to share a folder, from an admin point of view?

    Anyway:
    Upload Path – The PATH to where your files are located on the server. Default is /wp-content/blogs.dir/#/files/
    Upload Url Path – The URL where your files are called from. Default is https://domain.com/files
    Fileupload Url – The URL where your files are called from. Default is https://domain.com/files

    One of the two last ones is deprecated, but basically if they match, you’re golden.

    Now again, to warn you, WordPress Multisite does a LOT of redirecting with regards to images. You point to them at https://domain.com/files/YYYY/MM/image.jpg which passes that to https://domain.com/wp-includes/ms-files.php?file=/YYYY/MM/image.jpg which passes THAT to https://domain.com/wp-content/blogs.dir/#/files/YYYY/MM/image.jpg

    So you see there’s a LOT going on in there, and if you change it around, you can shoot yourself in the foot.

    Even if you changed every site’s Upload Path to /wp-content/files (which I strongly recommend over /files/ for many reasons), you will not get all the images showing up in your media libraries for all sites. Just doesn’t work like that :/

    Now, that said, a shared media library would be pretty cool. But no one’s made it yet :/

    Thread Starter calutateo

    (@calutateo)

    Thank you sooo much. That answer really made everything clear. I was on the wrong track. So I will just drive back start again from the default.

    I learned a lot. Thanks.

    Hello calutateo,

    i am having the same problem, did you solve it?
    It would be very nice, if you could post your solution –
    Or just give me an hint how to share the files (images) for all blogs.

    this does not work on my site:

    Upload Url Path - The URL where your files are called from. Default is https://domain.com/files
    Fileupload Url - The URL where your files are called from. Default is https://domain.com/files

    And i tried this too:

    https://domain.de/wp-content/uploads
    https://domain.de/wp-content/uploads

    Or is this completly the wrong way?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Or just give me an hint how to share the files (images) for all blogs.

    You don’t.

    Multisite is like running WordPress.com on your server. It’s intended to have separate, NOT related, sites on a network.

    You can cross post images by copying in the full image path/location from Blog A to Blog B, but you cannot have them show up in a shared media tool. Just doesn’t work, unless someone’s crafted a plugin I don’t know about.

    oh!(
    and i thought that this is one of the main parts of wp-multisite:
    Easy use of posts and contents from other Blogs of the network.

    Maybe Someone else know about a Plugin for this?

    Thread Starter calutateo

    (@calutateo)

    Hi Arson,

    WP is working exactly contrary to what I want it to do. It makes sense though.
    There might be a way to create symlinks on the file systems. Well, then you will have to know how to create symlinks and you need access to the web server’s operating system. I did someting similar with another software (Moodle). In most cases you don’t have access to the file system so…
    I don’t use the blogging feature in WP. All of my blogs are identical they just show a different language. That’s not a very typical way of using WP but it really works fine for me.
    The workaround was to put the standards images into a subfolder of the theme. All blogs use the same theme so they can access the images using the same path.
    This does not work for an upload path. I uploaded these image manually.

    HTH,
    Carsten

    I posted a similiar question…

    I have domain.com and domain.co.uk and wanted them to share the same images both from a file location and with the database so that the images would be shared from blog to blog that is, if domain.com uploaded image1.gif then, domain.co.uk could see the same image within the media library…

    It would be nice is some programming genius could come up with something like that and/or a way to create a single database two separate databases could share from an image stand-point… it would really save on disk space…

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    No one’s come up with it yet because, for the most part, people are using MultiSite to run separate, unconnected sites, or ones that use differeing media libraries.

    If you have shared images, they should be probably be uploaded via FTP or in some other static way.

    Thanks… I definitely need a database solution…

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Then I would consider using custom post types or categories to organize, within one blog, your posts, instead of multisite.

    Ah, that is just it, we are not using multisite although we are running 3.04

    That is to say, we have for instance one domain as domain.com and another as domain.co.uk

    If that is of any value…

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    If you’re not using MultiSite, then this subform (i.e. the multisite subforum) is not right for you ??

    That is to say, we have for instance one domain as domain.com and another as domain.co.uk

    You actually CAN manage two sites like that with MultiSite and domain mapping plugins, but if they’re totally separate, you’re outside multisite’s abilities ?? And even if you did, MultiSite would treat them as separate.

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘Define the same upload folder for all multisite blogs’ is closed to new replies.