Support displaying a message that correctly validates file uploads for the Gin theme.

Created on 18 June 2024, 3 months ago

Problem/Motivation

The message does not display correctly when validating uploaded files.
The message is supposed to be displayed in $form['#prefix'].
https://git.drupalcode.org/project/drupal/-/blob/10.2.6/core/modules/fil...
However, this property doesn't allow certain HTML tags, such as the button tag.

Steps to reproduce

1, Enable Gin for admin theme
2. Set a maximum upload size.

3. Upload a file that has a size greater than the set maximum upload size.
4. The displayed message is incorrect.

Proposed resolution

Should we change code like this?

$status_messages = ['#type' => 'status_messages'];
$output = $renderer->renderRoot($status_messages) . $renderer->renderRoot($form);

Or the other way to display message with button tag

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Active

Version

10.3 ✨

Component
File systemΒ  β†’

Last updated 1 day ago

Created by

πŸ‡»πŸ‡³Vietnam doidd

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

Comments & Activities

Production build 0.71.5 2024