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

Created on 18 June 2024, 6 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

See https://www.drupal.org/i/3452855

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

💬 Support request
Status

Active

Version

10.2

Component
File system 

Last updated 3 days 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