[英]File Reader API not working as expected in Safari, but working fine in chrome
我正在使用Safari版本8.0.5。 上载文件时,file.onload工作正常。
在连续过程中,如果我打开文件,进行一些更改,然后再次单击“上传文件”按钮,则不会在Safari中读取文件,但可以与chrome一起正常工作。
我看到的console.log错误是找不到文件。
希望我定义了问题。
编辑1
我想我对我的文字感到困惑
readFile = new FileReader();
readFile.onload = function(){
// working fine on first hit. But not working if i do changes in my file using editor.
}
readFile.error = function(){
// this is called after i make changes in my file with notepad. The error says file not found.
}
Safari 8是否支持FileReader
和File
构造函数?
caniuse.com说它不支持File
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.