Has something broken or am I missing a configuration step?

Created on 27 May 2025, about 1 month ago

Problem/Motivation

This module seems like a great solution for gate keeping files but after carefully following the directions on the module main page, I am unable to make it function. I have a brand new empty Drupal 10 website for testing (Drupal core 10.4.7).

1) Hash Salt on my site is set and unique

2) I'm using Symfony Mailer and it is configured correctly.

3) I have installed the webform_attachment_gated_download module

4) I created a media type called Gated Download File with the display type for the field to "Webform Gated Download Link". I set the button title to "Download the File" and I have set the Webform to the appropriate webform. I have added a couple of Media Library items of the Gated Download File type.

5) I have created a web form with an Attachment File (Gated Download) and set it to show on both form and submissions.

6) I have created an email handler for the form to send an email to an email address and have checked the checkbox for "Include files as attachments".

The Gated Download element does not show on my Form or the response page. When I press the submit button the results show that the Gated Download element was included in the submission but it resolves to an empty page.

The email that is sent does not include any attachments but it does have a link to:

the_website_url/webform/downloads/submissions/the_submission_number/attachment/gated_downloads/the_title_of_my_gated_download_file_element

The above URL resolves to a page not found.

I have seen no errors in the error log or JS console so there's nothing for me to track down in terms of where the disconnect is.

Steps to reproduce

Install and attempt to use.

Proposed resolution

If the module is still capable of working with Drupal and Webform, perhaps it needs documentation with a step-by-step recipe to describe how to make it work and any pitfalls along the way.

As someone unfamiliar with the module, I could probably write a useful step-by-step quick start guide but I need to understand how it works in order to do that.

Remaining tasks

Unknown

User interface changes

Unknown

API changes

Unknown

Data model changes

Unknown

That is as far as I have gotten in my journey with this module. Any assistance would be great.

Cheers,
Andrew

Feature request
Status

Active

Version

1.5

Component

Miscellaneous

Created by

🇨🇦Canada awasson

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @awasson
  • 🇮🇹Italy maurizio.ganovelli Arezzo

    Good morning,

    I have configured a minimal Drupal instance with these modules:

    drupal/core 10.4.7
    drupal/mailer_transport 1.6.0
    drupal/symfony_mailer 1.6.0
    drupal/webform 6.2.9
    drupal/webform_attachment 6.2.9
    drupal/webform_attachment_gated_download 1.5.0

    Following these steps:

    - create a webform with an "Attachment File (Gated Download)" element (specifing only name and leaving all default settings)
    - add an email handler to webform, leaving all defaults but checking only last checkbox "Include files as attachments"
    - add a media field or a simple file field to "Page" type
    - set up the format of new field in "Manage display" page as "Webform Gated Download Link" selecting the previous webform
    - create a new node of type page and select a file for the media/file field

    Now i can receive a mail with file selected on node as attachment, upon clicking generated link on new node and completing the webform.

    It seems to work fine in my tests, can you try to reproduce these steps again and let me know if no attachments are present on the mail sent?

    Regards.

Production build 0.71.5 2024