Remove @todo from file_save_upload()

Created on 21 October 2020, almost 4 years ago
Updated 11 July 2023, about 1 year ago

Problem/Motivation

There is a @todo in the documentation of file_save_upload() which says:

@todo: move this logic to a service in https://www.drupal.org/node/2244513 β†’ .

However, this function calls _file_save_upload_single(), which uses the file_system service. Moreover, this function seems perfectly fine according to #3101976: Add tests for file_save_upload trimming trailing . characters from filenames and move the test into SaveUploadTest β†’ .

Proposed resolution

This note is confusing since it suggests there is a better way than using this function, and thus it should be removed.

Remaining tasks

  1. Acknowledge whether this note is no longer relevant.
  2. If so, remove it (see attached patch).

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ“Œ Task
Status

Fixed

Version

10.1 ✨

Component
DocumentationΒ  β†’

Last updated 1 minute ago

No maintainer
Created by

πŸ‡«πŸ‡·France FMB PerpinyΓ , Catalonia, EU

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.

Production build 0.71.5 2024