chore: upload multi files

This commit is contained in:
Matin
2025-01-29 10:39:00 +03:30
parent 1d11509371
commit 63e5d1b925
7 changed files with 58 additions and 5 deletions
+5
View File
@@ -10,4 +10,9 @@ export class UploaderService {
async upload(file: IFile) {
return await this.s3Service.upload(file);
}
async uploadMultiple(files: IFile[]) {
const uploadPromises = files.map((file) => this.s3Service.upload(file));
return await Promise.all(uploadPromises);
}
}