Save file changes to database

Created on 3 August 2023, over 1 year ago

Problem/Motivation

Files are not updated in the database after compressing. The size of the file is changing, but that change is not being reflected in the database, and therefore not on any pages that indicate the file size.

Steps to reproduce

Note the size of an existing file, both in the file manager and on a page displaying the file's data (they should be the same), then use the Image Compression module to compress existing images, then check the size of the file again, the size in the file manager should change to reflect the new file size after compressing, but the page displaying the file's data will still show the old file size, even after clearing the cache. This is not the desired behavior.

Proposed resolution

Save the file object after compressing it. See attached patch.

Feature request
Status

Fixed

Version

2.0

Component

Code

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

Comments & Activities

Production build 0.71.5 2024