Share » Forums » Developer » Uploading files to multi-site...

Uploading files to multi-site configuration

Uploading files to multi-site configuration

Wednesday 06 April 2011 1:58:21 am - 2 replies

Author Message

André R.

Wednesday 06 April 2011 2:38:06 am

Possible mistakes:
Are you using different var dir's for the different siteaccesses? (when siteaccesses share content they should use same var folder)
Or is there something wrong with the virtualhost matching rules maybe, so that Apache does not handle the var/admin path correctly.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Jan Eirik Forland

Thursday 07 April 2011 4:19:52 am

Yes, I'm using different var dir's for the different siteaccesses. But that's because the sites don't share content.

I've checked the virtualhost matching rules, and they are correct. I found a solution that I can live with. The problem was that uploaded files to the Media Library was stored in the var/storage directory under the var/admin folder. This meant that you had to access the admin siteaccess to download the files (when used as links in articles etc). In the site.ini.append.php file in the admin siteaccess, i just added the following line:

[SiteAccessSettings]

AnonymousAccessList[]=content/download

This solved my problem perfectly. The files are still stored under admin's var directory, but that I can live with :)

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu