Issue: Error: FileConstructor is not a constructor (evaluating 'new File([blob], "filename.png")')FileConstructor của Angularjs không phải là một hàm tạo '
Tôi thấy câu hỏi này Alternative for File() constructor for safari nhưng không có bất kỳ lựa chọn thay thế nào đáng xem.
Có cách nào để giải quyết vấn đề này bằng cách sử dụng Ionic Framework trên IOS không?
Javascript
a = Base64 hình ảnh.
var blob = new Blob([a], {type: 'image/png'});
console.log(blob);
$scope.Issue14 = blob;
var nfile = new File([blob], "filename.png");
console.log(nfile);
$scope.Issue15 = nfile;
var _file = nfile;
console.log(_file);
$scope.Issue16 = _file;
$scope.Images.push({"img": _file});