• What I’m trying to do is show a certain folder and all files and folders within it to users with certain capabilities. I’m not super familiar with regex or the Ascii characters that seem to be required by the shortcode so I’m looking for some guidance.

    In my s2member-files directory I have sub-directories for certain capabilities such as access-s2member-ccap-view and then I have folders under that ccap directory.

    I want a user with capability “view” to only be shown the documents folder in this directory and all of the document folder’s contents:

    /s2member-files/access-s2member-ccap-view/documents/

    I think I can do this using the filterdir variable in the shortcode but I’m not sure how to do it. I have tried filterdir=”%2Fdocuments%2F” but that only shows the directory and not the files that are stored within it. Any suggestions?

    https://wordpress.org/plugins/s2member-secure-file-browser/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to use filterdir to target folder’ is closed to new replies.