接口需要前端传一个file图片文件 我在前端将图片压缩后得到一个 blob类型 但是我将blob转为file 中在个别iphone中 报错 FileConstructor is not a constructor
代码:
//将blob转换为file
function blobToFile(theBlob, fileName){
var f = new File([theBlob], fileName, {type: "image/png", lastModified: Date.now()});
return theBlob;
},
请问大佬们这个问题有什么办法解决么
兄弟,你解决了吗,极少部分ios系统会出现