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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions