Allow processing of temporary files

Created on 4 March 2020, over 4 years ago
Updated 28 January 2023, over 1 year ago

Problem/Motivation

Out of the box, the module won't process temporary files. If you would like derivates to be generated immediately, this is a problem, as you'll have to save the media before it generates them.

Proposed resolution

Remove the constraint that the file must be permanent, or make it configurable.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

✨ Feature request
Status

Postponed: needs info

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States oknate Greater New York City Area

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.

  • πŸ‡©πŸ‡ͺGermany IT-Cru Munich

    @oknate & @hkirsman: Could you explain a little bit your use case where you really need this? I'm currently struggling a little bit, if it is a good idea to remove this $file->isPermanent() check or not.

    On the one hand we would start image styles generation earlier as you described, when media entity is not saved yet.

    On the other hand for people who need image styles only for permanent files it could have a big performance impact, when also all temporary files are automatically getting image styles, which also will get deleted, when this temporary files will be deleted again by Drupal core's file garbage collection.

Production build 0.69.0 2024