Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fails on prefill in ie11 #51

Closed
kroegen opened this issue Dec 20, 2017 · 1 comment
Closed

fails on prefill in ie11 #51

kroegen opened this issue Dec 20, 2017 · 1 comment
Labels

Comments

@kroegen
Copy link

kroegen commented Dec 20, 2017

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
}
}
}

@alessiomaffeis
Copy link
Owner

Great, thanks for the heads-up! Would you mind to create a PR? :)

gorbunovav added a commit to GorbunovStudio/vue-picture-input that referenced this issue May 3, 2018
alessiomaffeis added a commit that referenced this issue May 3, 2018
Prefill image load - fix for IE11 & Edge (#51)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants