It looks like there was a recent patch for 5.x that I hope can easily be made to 4.7.x.

I have drupal installed in a subdirectory www.mysite.com/drupal. I have multiple sites in the drupal/sites directory structures, such as sites/sub1.multisite.com.

When I access content from the main site, the images that were uploaded with IMCE are not displayed as the img src is drupal/files/xxx.jpg. But since the subdomain currently resolves to mysite.com/drupal, the net effect is that my subdomain site is looking for the images in drupal/drupal/files/xxx.jpg.

I have tried to use the Private File method rather than public, but with no luck either.

Thanks for your help on this one. And thanks for a great module!

Comments

ufku’s picture

Shouldnt the img src be like /drupal/....?

bottdev’s picture

Yes, you are right. Both src paths do start with a forward slash. Is there any way to access the images from the subdomain site without it looking for /drupal/drupal/files/...?

Thanks for your help.

ufku’s picture

you may create a symlink for drupal/drupal
running a php script(symlink('./', 'drupal');) under drupal directory will make "drupal/drupal" point to "drupal".

bottdev’s picture

Status: Active » Closed (fixed)

Works perfectly! Thank you so much for your help and for a wonderful module.