Skip to content

Feature proposal: save file_size in database #249

Description

@fabianhohly

Saving the file_size in the database is already implemented for Wagtail images and documents.

file_size = models.PositiveIntegerField(null=True, editable=False)

The file_size is set in the save function, for example, in BaseImageForm.

I suggest implementing this for media as well. This would have the advantage of allowing objects to be sorted directly by file_size.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions