Skip to content

Commit

Permalink
fix: Image not downloading issue
Browse files Browse the repository at this point in the history
  • Loading branch information
chavda-bhavik committed Jul 12, 2024
1 parent 9d9ab3e commit f28b845
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ export class DownloadSample {
const file = zip.files[filename];
const fileData = await file.async('base64');
const storageFilename = this.fileNameService.getAssetFilePath(data.importId, filename);
await this.storageService.uploadFile(storageFilename, fileData, getAssetMimeType(filename));
await this.storageService.uploadFile(
storageFilename,
Buffer.from(fileData, 'base64'),
getAssetMimeType(filename)
);
})
);
}
Expand Down

0 comments on commit f28b845

Please sign in to comment.