Skip to content

Wrong condition in FormDataAddon and not converting FileList to file[] format #201

@hamidreza4dev

Description

@hamidreza4dev

Hi,
the problem is that FileList is not an instance of Array and this will cause an issue.

if (value instanceof Array) {

it can simply be fixed by changing the condition to:

if (value instanceof Array || value instanceof FileList) {
// ...    

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions