Skip to content

Different file size limitation based on file type #569

@olefrank

Description

@olefrank

I have an endpoint to upload files. I would like to have different file size limits depending on the file type. Images size limit =< .5 MB and PDF size limit =< 2MB.

The limits.fileSize options only allows for one value, and I can't do it in the fileFilter property either... So how could I do it?

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