Skip to content

Support max file size per file type #3

@hbgl

Description

@hbgl

Hi, thanks for the great plugin.

I want my users to be able to upload images and videos using the same filepond uploader. For images I want a smaller max file size and for videos I want a bigger max file size.

Would it make sense to add this configuration to the plugin? Something like this would fit the use-case perfectly:

const filePondOptions = {
  maxFileSize: {
    "image/*": 5242880,
    "image/png": 10485760,
    "video/mp4": 104857600,
  },
}

Cheers

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