You are here

README.txt in Webform Protected Downloads 7

Same filename and directory in other branches
  1. 6 README.txt
$Id: README.txt,v 1.1 2010/09/15 20:12:36 berliner Exp $

Description
===========
The Webform Protected Downloads module provides a handy solution for the
following situation:
- you want to offer some files for download to either anonymous or registered
  users
- you don't want those files to be plublicly accessible
- you want the user to fill in some form fields before getting access to the
  files
- you want to be sure that the user gives a valid email address

Functional overview
===========
This module provides protected downloads using webforms. When you create a
webform you can select which of the attached files you want to protect. You
need to specify the webform field used for the confirmation mail (this must be
a mandatory email field) and how long the download should be accessible after
the user has submitted the form.
When a user submits a webform with protected files he will be sent an email
with a link to the downloads page. The link contains an individual hash code that
will be checked upon page load to verify the access. If verification fails
access will be denied. If it succeeds the user will see a configurable text
above the file listing.

Installation
===========
Webform Protected Downloads relies on the core File module and the contributed
modules Webform and Token, which must be downloaded and enabled separately.

The following steps guide you through a basic setup of all necessary
components. It is assumed that you use the default webform content type called
"webform".

1. Unpack the Webform Protected Downloads folder and contents in the
   appropriate modules directory of your Drupal installation. This is probably
   sites/all/modules/
2. Enable the Webform Protected Downloads module in the administration section
   of your site: admin/build/modules
3. If you're not using Drupal's default administrative account, make sure
   "administer webform protected downloads" is enabled on the user
permissions
   page.
4. You'll need to have Private Files enabled within Drupal's file system.
   Visit admin/config/media/file-system and set 'sites/default/files/private'
   as your Private file system path.
   Visit https://drupal.org/documentation/modules/file for more information
   about securing files
5. Go to the Webform Content Type admin/structure/types/manage/webform and
   create a new field. Typically you would use a file field called Download but
   you call it anything. This field must be set to Private
6. Create a webform with at least one email field. This must be set to
   mandatory.
7. On the Edit Tab of your Webform is where you will upload your Protected
   Download file. Once you've uploaded your Protected Download, click Save.
   Then click the Protected Download tab and configure as required.

Usage
===========
When you create a webform with files attached, you will see a new tab in the
edit section after the node has been saved. Using this tab "Protected
Downloads" you can configure which files to protect, the content of the email
that will be sent to the user, the validity period of the download link and the
messages for access granting or denial.

In order to preview the resulting downloads page (you must be logged in as a
user with the "administer webform protected downloads" permission) you can
visit a url like:
http://PATH-TO-YOUR-INSTALLATION/node/NID/download
If you want to see what the access denied page looks like simply visit the same
url as an anonymous user.

Useful ressources
===========
Working with files: http://drupal.org/documentation/modules/file

File

README.txt
View source
  1. $Id: README.txt,v 1.1 2010/09/15 20:12:36 berliner Exp $
  2. Description
  3. ===========
  4. The Webform Protected Downloads module provides a handy solution for the
  5. following situation:
  6. - you want to offer some files for download to either anonymous or registered
  7. users
  8. - you don't want those files to be plublicly accessible
  9. - you want the user to fill in some form fields before getting access to the
  10. files
  11. - you want to be sure that the user gives a valid email address
  12. Functional overview
  13. ===========
  14. This module provides protected downloads using webforms. When you create a
  15. webform you can select which of the attached files you want to protect. You
  16. need to specify the webform field used for the confirmation mail (this must be
  17. a mandatory email field) and how long the download should be accessible after
  18. the user has submitted the form.
  19. When a user submits a webform with protected files he will be sent an email
  20. with a link to the downloads page. The link contains an individual hash code that
  21. will be checked upon page load to verify the access. If verification fails
  22. access will be denied. If it succeeds the user will see a configurable text
  23. above the file listing.
  24. Installation
  25. ===========
  26. Webform Protected Downloads relies on the core File module and the contributed
  27. modules Webform and Token, which must be downloaded and enabled separately.
  28. The following steps guide you through a basic setup of all necessary
  29. components. It is assumed that you use the default webform content type called
  30. "webform".
  31. 1. Unpack the Webform Protected Downloads folder and contents in the
  32. appropriate modules directory of your Drupal installation. This is probably
  33. sites/all/modules/
  34. 2. Enable the Webform Protected Downloads module in the administration section
  35. of your site: admin/build/modules
  36. 3. If you're not using Drupal's default administrative account, make sure
  37. "administer webform protected downloads" is enabled on the user
  38. permissions
  39. page.
  40. 4. You'll need to have Private Files enabled within Drupal's file system.
  41. Visit admin/config/media/file-system and set 'sites/default/files/private'
  42. as your Private file system path.
  43. Visit https://drupal.org/documentation/modules/file for more information
  44. about securing files
  45. 5. Go to the Webform Content Type admin/structure/types/manage/webform and
  46. create a new field. Typically you would use a file field called Download but
  47. you call it anything. This field must be set to Private
  48. 6. Create a webform with at least one email field. This must be set to
  49. mandatory.
  50. 7. On the Edit Tab of your Webform is where you will upload your Protected
  51. Download file. Once you've uploaded your Protected Download, click Save.
  52. Then click the Protected Download tab and configure as required.
  53. Usage
  54. ===========
  55. When you create a webform with files attached, you will see a new tab in the
  56. edit section after the node has been saved. Using this tab "Protected
  57. Downloads" you can configure which files to protect, the content of the email
  58. that will be sent to the user, the validity period of the download link and the
  59. messages for access granting or denial.
  60. In order to preview the resulting downloads page (you must be logged in as a
  61. user with the "administer webform protected downloads" permission) you can
  62. visit a url like:
  63. http://PATH-TO-YOUR-INSTALLATION/node/NID/download
  64. If you want to see what the access denied page looks like simply visit the same
  65. url as an anonymous user.
  66. Useful ressources
  67. ===========
  68. Working with files: http://drupal.org/documentation/modules/file