None ASCII characters file names

Created on 6 February 2023, about 2 years ago
Updated 7 June 2023, over 1 year ago

Problem/Motivation

After #3296068: [Drupal 9.4.x+] Test and one-off D10 deprecations β†’ none ASCII characters file names will give the following error:
The filename fallback must only contain ASCII characters

This is because of HeaderUtils::makeDisposition in Symfony

Steps to reproduce

  1. create a webform and add a file field and don't check Rename files or Sanitize file name
  2. Go to the form page and upload a file with none ASCII characters name, then hit submit
  3. Go to the results page and click on the file to view it and you will get the error

Proposed resolution

HeaderUtils::makeDisposition has a filenameFallback parameter, which can handle this issue

Remaining tasks

Patch

User interface changes

none

API changes

none

Data model changes

none

πŸ› Bug report
Status

Fixed

Version

6.2

Component

Code

Created by

πŸ‡―πŸ‡΄Jordan Anas_maw

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

Comments & Activities

Production build 0.71.5 2024