mirror of
https://github.com/wekan/wekan.git
synced 2026-01-28 12:16:10 +01:00
Uploaded done, but uploading not
This commit is contained in:
parent
4dcdec0084
commit
6cdd464f54
7 changed files with 27 additions and 31 deletions
|
|
@ -2,9 +2,12 @@ import { FilesCollection } from 'meteor/ostrio:files';
|
|||
|
||||
Attachments = new FilesCollection({
|
||||
storagePath: storagePath(),
|
||||
debug: true, // FIXME: Remove debug mode
|
||||
debug: false, // FIXME: Remove debug mode
|
||||
collectionName: 'attachments2',
|
||||
allowClientCode: true, // FIXME: Permissions
|
||||
onAfterUpload: (fileRef) => {
|
||||
Attachments.update({_id:fileRef._id}, {$set: {"meta.uploaded": true}});
|
||||
}
|
||||
});
|
||||
|
||||
if (Meteor.isServer) {
|
||||
|
|
@ -15,6 +18,7 @@ if (Meteor.isServer) {
|
|||
// TODO: Permission related
|
||||
// TODO: Add Activity update
|
||||
// TODO: publish and subscribe
|
||||
|
||||
Meteor.publish('attachments', function() {
|
||||
return Attachments.find().cursor;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue