Incorrect URLs for files uploaded via webform with file_encrypt

Created on 28 March 2020, about 4 years ago
Updated 12 April 2024, 2 months ago

Steps to reproduce

  1. Configure webform_encrypt and file_encrypt as per https://www.drupal.org/project/webform_encrypt/issues/3038902#comment-13... β†’
  2. Set up a webform with an encrypted file field
  3. Submit the form with a file
  4. View the submission
  5. Click the file link

Expected result

The file should be available for download from e.g. http://localhost:8090/encrypt/files/webform/encrypt_webform_test/213689/...

Actual result

The page responds with 404, but if you manually add the query parameter, it behaves as expected, eg. http://localhost:8090/encrypt/files/?file=webform/encrypt_webform_test/2...

Notes

I had wondered if πŸ› Fix download route when installed with the redirect module RTBC may be related, but the issue still occurred with the patch from that issue, and with redirect uninstalled.

πŸ› Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom malcomio

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024