mirror of
https://github.com/wekan/wekan.git
synced 2026-01-26 19:26:09 +01:00
parent
80d0ec0898
commit
1cddd607ec
3 changed files with 12 additions and 20 deletions
|
|
@ -5,8 +5,6 @@ import { createOnAfterUpload } from './lib/fsHooks/createOnAfterUpload';
|
|||
import { createInterceptDownload } from './lib/fsHooks/createInterceptDownload';
|
||||
import { createOnAfterRemove } from './lib/fsHooks/createOnAfterRemove';
|
||||
|
||||
const os = require('os');
|
||||
|
||||
let avatarsBucket;
|
||||
if (Meteor.isServer) {
|
||||
avatarsBucket = createBucket('avatars');
|
||||
|
|
@ -15,7 +13,6 @@ if (Meteor.isServer) {
|
|||
Avatars = new FilesCollection({
|
||||
debug: false, // Change to `true` for debugging
|
||||
collectionName: 'avatars',
|
||||
storagePath: os.tmpdir(),
|
||||
allowClientCode: true,
|
||||
onBeforeUpload(file) {
|
||||
if (file.size <= 72000 && file.type.startsWith('image/')) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue