filesCollection.on('stored') produces error with cfs:filesystem
Using on the serverside causes this error:
W20150819-15:16:42.127(-4)? (STDERR) Error: Error storing file to the images store: Can't wait without a fiber
I'm following the example here: https://github.com/CollectionFS/Meteor-CollectionFS/issues/323
Here's the code:
filesCollection.on('stored', function (fileObj, storeName) {
readStream = fileObj.createReadStream();
});
@aldeed Is there other documentation for this besides the link above?
I'm getting the same error. Can't seem to find any solution to this. @keyscores, have you solved this?
I used
filesCollection.on('uploaded' ...
But that method also has issues, such as returning true, when upload is not complete. There's another issue here in github related to it.
That's not working for me. @aldeed, any recommendations?
Ended up doing it by observing the collection for changes and checking if the url() is not null. This should really be fixed though.
EDIT: Nope, that doesn't work either. URL getting filled in doesn't guarantee that the file has been uploaded.
please where i have to put this trigger?
filesCollection.on('stored', function (fileObj, storeName)
@hich-em I recommend you use https://github.com/vsivsi/meteor-file-collection if you are using gridFS. I think CollectionFS is no longer maintained.
this is still an issue today