- Issue created by @adpo
- 🇪🇸Spain dcimorra 🇪🇸 Spain
A temporary solution could be to implement the hook_alter_file_uri which implements the EncryptedFileDownloadController handler to modify the headers that are returned, including the correct file name in them.
However, I take note of this to change it.
Thank you! - Assigned to dcimorra
- 🇵🇱Poland adpo
Great, that worked. THank you
function module_alter_file_uri(&$uri, $queryParams, &$headers, $scheme) { $headers["Content-Disposition"] = 'inline; filename="'.basename($uri).'"'; }
- @dcimorra opened merge request.
- Status changed to Needs review
almost 2 years ago 7:27am 3 February 2023 - 🇪🇸Spain dcimorra 🇪🇸 Spain
Marked as need's review, merged with 2.x-dev branch.