Jump to:

10931 Posts in 2614 Topics by 1810 members

All other Modules

SilverStripe Forums » All other Modules » Secure Files module in SS v.3

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2
Go to End
Author Topic: 1562 Views
  • pga
    Avatar
    Community Member
    8 Posts

    Secure Files module in SS v.3 Link to this post

    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!

  • Willr
    Avatar
    Forum Moderator
    5490 Posts

    Re: Secure Files module in SS v.3 Link to this post

    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.

  • dizzystuff
    Avatar
    Community Member
    93 Posts

    Re: Secure Files module in SS v.3 Link to this post

    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.

  • tv
    Avatar
    Community Member
    43 Posts

    Re: Secure Files module in SS v.3 Link to this post

    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!

  • tv
    Avatar
    Community Member
    43 Posts

    Re: Secure Files module in SS v.3 Link to this post

    Please see this thread for how I got this working in SS3: http://www.silverstripe.org/general-questions/show/21391

  • purplespider
    Avatar
    Community Member
    81 Posts

    Re: Secure Files module in SS v.3 Link to this post

    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!

  • mimamo
    Avatar
    Community Member
    22 Posts

    Re: Secure Files module in SS v.3 Link to this post

    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

  • purplespider
    Avatar
    Community Member
    81 Posts

    Re: Secure Files module in SS v.3 Link to this post

    beho: What version of SilverStripe are you using?

    1562 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.