Allow processing of temporary files

Created on 4 March 2020, almost 5 years ago
Updated 28 January 2023, almost 2 years 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.71.5 2024