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

Comments

miglius’s picture

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?

mstef’s picture

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.

mstef’s picture

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

mstef’s picture

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'));
Arto’s picture

Title: Moving Files Directory to Non-Web Dir & Multisite Support » Improve multi-site support
Component: Code » Miscellaneous
Assigned: Unassigned » Arto
Category: support » feature
Status: Fixed » Needs work
Issue tags: +multisite

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.