mirror of
https://github.com/wekan/wekan.git
synced 2026-01-06 09:38:49 +01:00
fix: user avatar images & upload
This commit is contained in:
parent
1b591dcda9
commit
77cb5d88de
3 changed files with 10 additions and 15 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue