Allow AWS SDK use AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY

This commit is contained in:
Philipinho
2024-07-07 09:24:19 +01:00
parent 7383673636
commit 4af3a54649
3 changed files with 22 additions and 9 deletions

View File

@ -34,9 +34,6 @@ export class S3Driver implements StorageDriver {
});
await this.s3Client.send(command);
// we can get the path from location
console.log(`File uploaded successfully: ${filePath}`);
} catch (err) {
throw new Error(`Failed to upload file: ${(err as Error).message}`);
}