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

November 13, 2017 - 17:02

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!

Get Drupal updates straight to your inbox

To prevent automated spam submissions leave this field empty.

Post your comments / questions