Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • how to restrict file access to specific user roles

    • 0
    • 1
    • 1
    • 1
    • 0
    • 0
    • 0
    • 0
    • 105
    Comment on it

    Drupal has great features for files management. Website user with required permissions can set the content type and manage the file upload process. User has the authority to set the content type as well as file size to upload. If you want to resist the specific type of users to access then you need to follow these steps.

    A) create new folder named private /site/default/files/private
    B) create a .htaccess file in this folder.
    B) you need to set the path to private for files to upload in administer->configuration->media(file system)

    These steps will resist the access of files publically.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: