The purpose of this module is to ask visitors to fill out a webform before being allowed to receive a file. The file will be sent as an attachment by email, if it is configured as shown below.

This module provides a field formatter for file, image, and media types which links to a webform.

The module also provides a "Attachment File (Gated Download)" webform element which must be used for the module to work.