fix: user avatar images & upload

This commit is contained in:
David Arnold 2020-09-17 01:57:58 -05:00
parent 433ab32524
commit 116d68b48a
No known key found for this signature in database
GPG key ID: 6D6A936E69C59D08
3 changed files with 11 additions and 15 deletions

View file

@ -15,9 +15,9 @@ Avatars = new FilesCollection({
collectionName: 'avatars',
allowClientCode: true,
onBeforeUpload(file) {
if (file.size <= 72000 && file.type.startsWith("image/")) {
if (file.size <= 72000 && file.type.startsWith('image/')) {
return true;
};
}
return 'avatar-too-big';
},
onAfterUpload: createOnAfterUpload(avatarsBucket),