Meteor-CollectionFS icon indicating copy to clipboard operation
Meteor-CollectionFS copied to clipboard

filesCollection.on('stored') produces error with cfs:filesystem

Open 0o-de-lally opened this issue 10 years ago • 7 comments

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?

0o-de-lally avatar Aug 19 '15 20:08 0o-de-lally

I'm getting the same error. Can't seem to find any solution to this. @keyscores, have you solved this?

nickdandakis avatar Sep 09 '15 21:09 nickdandakis

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.

0o-de-lally avatar Sep 09 '15 21:09 0o-de-lally

That's not working for me. @aldeed, any recommendations?

nickdandakis avatar Sep 09 '15 22:09 nickdandakis

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.

nickdandakis avatar Sep 10 '15 15:09 nickdandakis

please where i have to put this trigger?

filesCollection.on('stored', function (fileObj, storeName)

neutron92 avatar Jun 03 '16 16:06 neutron92

@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.

0o-de-lally avatar Jun 03 '16 19:06 0o-de-lally

this is still an issue today

johhansantana avatar Mar 28 '17 13:03 johhansantana