Save avatars to le cloud in beforeSave hooks

Added encryption to uploads
Updated icon for team settings
This commit is contained in:
Tom Moor
2018-06-01 18:00:48 -04:00
parent a99a804ea0
commit 4c9f86c7f7
7 changed files with 39 additions and 16 deletions

View File

@@ -68,6 +68,7 @@ export const uploadToS3FromUrl = async (url: string, key: string) => {
Key: key,
ContentType: res.headers['content-type'],
ContentLength: res.headers['content-length'],
ServerSideEncryption: 'AES256',
Body: buffer,
})
.promise();