const base64 = '...'; const imageName = 'name.png'; const imageBlob = this.dataURItoBlob(base64); const imageFile = new File([imageBlob], imageName, { type: 'image/png' });