file.api.php documentation is incorrect

Created on 14 December 2023, 6 months ago

Problem/Motivation

The documentation in file.api.php documents the #upload_validators with an example using #type file. However, #upload_validators are not called for #type file, only #type managed_file.

Steps to reproduce

View the source on the API page for file.api.php: https://api.drupal.org/api/drupal/core%21modules%21file%21file.api.php/10

Proposed resolution

Change the example from '#type' => 'file' to '#type' => 'managed_file'

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

Release notes snippet

πŸ› Bug report
Status

Active

Version

10.2 ✨

Component
File moduleΒ  β†’

Last updated 3 days ago

Created by

πŸ‡¨πŸ‡¦Canada Jaypan

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

Comments & Activities

Production build 0.69.0 2024