Skip to content

Dropzone and FileInput should inherit accept settings from @uppy/core restrictions #5970

@Murderlon

Description

@Murderlon

Initial checklist

  • I understand this is a feature request and questions should be posted in the Community Forum
  • I searched issues and couldn’t find anything (or linked relevant results below)

Problem

Restrictions set on the Uppy class are not reflected in Dropzone and FileInput headless components

new Uppy({
        restrictions: {
            maxNumberOfFiles: 20,
            maxFileSize: MAX_FILE_SIZE,
            allowedFileTypes: ['image/jpeg', '.jpg', '.jpeg'],
        },
    })

Solution

Inherit the settings

Alternatives

n/`

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions