Default value for displaying files is not working

Created on 27 November 2023, 12 months ago
Updated 28 November 2023, 12 months ago

Problem/Motivation

The default value for displaying files on a file field settings is not being respected when adding new files.

Steps to reproduce

1. Install Drupal with the Standard profile
2. Go to any content type (e.g., Basic page) and add a new File field (e.g., Attachment)
3. On the field settings, check "Enable Display field" and make sure "Files displayed by default" is checked
4. Go to the Add Content form of a Basic page
5. Upload a file to the Attachment field

The expected behavior is that the "Include file in display" option should be checked by default, but the actual behavior is that the checkbox is unchecked by default.

Note that if the "Enable Display field" is set to false, the uploaded files are correctly displayed by default. The problem only happens when this option is active.

🐛 Bug report
Status

Closed: duplicate

Version

10.1

Component
File module 

Last updated 3 days ago

Created by

🇧🇷Brazil gedvan João Pessoa

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.

  • Issue created by @gedvan
  • Status changed to Closed: duplicate 12 months ago
Production build 0.71.5 2024