Skip to content

Store file size along with attachments #40

@xinranh2

Description

@xinranh2

We want to store the size of a file uploaded for clients to be able to restrict how large uploads are and notify users of how large file is before loading images when the website runs.

Once this is done:

  1. Size of uploaded files will be stored in database
  2. API requests for attachments will include file size information
  3. Include a migration for updating information of already existing attachments

possible code: size = models.IntegerField(blank=True, )

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