I need to secure access to some uploaded files for members only.
How to do it? - unfortunately Secure Files module doesn't work in newest SilverStripe version :-(
Thanks!
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
I need to secure access to some uploaded files for members only.
How to do it? - unfortunately Secure Files module doesn't work in newest SilverStripe version :-(
Thanks!
Check to see if the module has been forked at all (https://github.com/hamishcampbell/silverstripe-securefiles/network) as someone might be working on a 3.0 version, otherwise contact the maintainer and see if they have any plans to update the module.
Hi pga, I've just updated the parts of the module I need for a project I'm working on - namely Group based permissions (but not individual Members or Token access). It's a bit hacky I guess but it's "working for me" :)
I'm not totally across pushing and pulling and carrying on on github yet, but like I said this is a rushed and unfinished update to the mod anyway, so I'm just zipping it up and attaching it to this thread for now. If I get the chance I'll try a pull request into the mod repo properly later in the week.
As I said though, I've now got it working for me. Hope it helps.
Hey dizzystuff,
Would you mind explaining how you got the updateCMSFields method to work? I have the following:
public function updateCMSFields(FieldList $fields) {
...
$secureFilesTab = $fields->addFieldToTab('Root.Security',
new HeaderField(_t('SecureFiles.SECUREFIETABNAME',
'Security')));
...
}
but I am receiving an error:
Error at framework/forms/FieldList.php line 288: FieldList::addFieldToTab() Tried to add a tab to object 'FieldList' - 'Root' didn't exist.
Not seeing the attachment...
Thanks!
Please see this thread for how I got this working in SS3: http://www.silverstripe.org/general-questions/show/21391
Don't suppose someone is able to send me over a version of the Secure Files module that works on v3? I really need it for a project that's going live soon. silverstripeforum[at]pswd.biz
Thank you! :)
Hi,
i'm although trying to get this module working.
But i I didn't get it ... :/
I downloaded the latest version from github, renamed the folder, uploaded it and ran a dev/build.
now i get an Server error if i try to access the files section, or any site with files on it .. :/
can someone please help me to get it working? i need it very urgent.
thanks in advance
benni
beho: What version of SilverStripe are you using?