ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

File Upload Path with MSM

July 08, 2012 2:32am

Subscribe [2]
  • #1 / Jul 08, 2012 2:32am

    emarthinsen

    4 posts

    Hello. I’m using MSM to run two websites. For the sake of example, let’s say the first one is at foo.com and the second one is at bar.com. Also, I’ve created a file upload preference called “images” with the “URL of Upload Directory” set to “http://foo.com/uploads/images”. The files that I put into this upload location are used across both sites.

    Here’s the issue I’m running into. I can access a file by going to http://foo.com/uploads/images/a.gif, but I also want to be able to access that same file at http://bar.com/uploads/images/a.gif. Is this possible?

    Regards,
    Eric

  • #2 / Jul 09, 2012 2:26pm

    Shane Eckert

    7174 posts

    Hey emarthinsen,

    Thank you for posting your question here on the ExpressionEngine forums.

    You can keep files in both locations if you would like. Or create symlinks on the file system.

    This is how set up is suggested.

    └── domain1.com
        ├── admin.php
        ├── index.php
        ├── images
        ├── system
        └── themes
    └── domain2.com
        ├── admin.php
        └── index.php

    I hope this helps.

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases