[SOLVED] How to Access Private Files in Drupal 7?

| | 1 min read

Have you ever found it difficult to access a private file within Drupal? Then read on.

Below are the Steps I Followed to Create and Access the Private File.

  • In file system configuration page (/admin/config/media/file-system), I defined private files path to be 'sites/default/files/private'.
  • Downloaded and enabled the module Private Files Download Permission.
  • In Drupal permission setting page (admin/people/permissions), gave the permission 'Bypass Private files download permission' to the user role who should be able to access the private files.

Now I'm able to access the private file using the URL '/system/files/my-file-name'.

Need help with your Drupal development work? Get in touch with us!