Improve multi-site support

mikestefff - May 8, 2009 - 23:55
Project:Bitcache
Version:6.x-1.x-dev
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:Arto
Status:needs work
Issue tags:multisite
Description

Hey - me again..

I understand that FileFramework takes over file handling, in terms of public and private download settings. The application I am developing depends very highly on file security and privacy. Is it possible to move the bitcache file directory to a non web-accessible directory (not inside /sites/default/files/ etc)? Also, is there a way to specify a directory for each subsite to use? I'll be creating hundreds of subsites (*.mywebsite.com) and I'll need a separate directory for each site - I'm sure you understand..

Thanks again

#1

miglius - May 9, 2009 - 17:46
Project:File Framework» Bitcache
Version:6.x-1.0-alpha5» 6.x-1.x-dev

I think you can set a 'bitcache_root' variable directly in the db. Arto, can you correct me?

#2

mikestefff - May 9, 2009 - 18:42

Seems there isn't a variable for bitcache but the bitcache_repositories table seems to be the winner. The file repository row contains - a:3:{s:5:"title";s:14:"File framework";s:11:"description";s:50:"A repository for the file framework managed files.";s:8:"location";s:33:"sites/default/files/bitcache/file";}.

It's a little harder to work with for multisites cause I can't override it in settings.php but whatever works...unless theres something better.

#3

mikestefff - May 12, 2009 - 12:04

No other way to change it? Seems strange that there wouldn't be a setting for it. Would get confusing with multisites.

#4

mikestefff - May 14, 2009 - 18:31
Status:active» fixed

Execute:

bitcache_update_repository('file', array('title' => 'File framework', 'description' => 'A repository for the file framework managed files.', 'location' => '/new/file/path'));

#5

Arto - May 19, 2009 - 17:54
Title:Moving Files Directory to Non-Web Dir & Multisite Support» Improve multi-site support
Component:Code» Miscellaneous
Category:support request» feature request
Assigned to:Anonymous» Arto
Status:fixed» needs work

Dave's suggestion in #433708: Make all repositories configurable for a dynamic file path based on a !site_dir token could be useful for multi-site support.

 
 

Drupal is a registered trademark of Dries Buytaert.