转换为文件对象时的 Base64 图像有一个奇怪的名字

Base64 image when converted to File Object has a weird name

var b64 = newCroppedImage.split(',');
var file = [];
file.push(new File([window.atob(b64[1])], {type: 'image/jpeg'}));

上面的代码创建了一个新图像 File() 对象,该对象将被上传到 Amazon S3。问题是每个正在转换的 base64 图像的 file.name 始终是 "objec Object"(见下图),导致每个 File() 对象的图像文件名相似.这是为什么?有办法改变吗?

像这样

var b64 = newCroppedImage.split(',');
var file = [];
file.push(new File([window.atob(b64[1])], 'file.jpeg', {type: 'image/jpeg'}));