A commonly encounter requirement in website development is to provide file downloads for users, but only after they logged in. This feature can be easily implemented in a Drupal website.
1 - Configure Drupal for Private Download
The first thing we need to do is to configure the Drupal core for private download, so that visitors that are not logged-in cannot access the attached files. Simply go to Administer -> Site Configuration -> File System, and set the file system path to somewhere outside of your webroot. You can do this by...