Skip to content

fails on prefill in ie11 #51

@kroegen

Description

@kroegen

ie11 doesn't support File constructor OOB
I fixed this with next code found here jimmywarting/FormData#11 :
let File = window.File

try {
new File([], '')
} catch(e) {
File = class File extends Blob {
constructor(chunks, filename, opts = {}){
super(chunks, opts)
this.lastModifiedDate = new Date()
this.lastModified =+ this.lastModifiedDate
this.name = filename
}
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions