Meteor-files: .write( ) not passing through onAfterUpload( ) of FilesCollection

Created on 3 Apr 2017  路  4Comments  路  Source: veliovgroup/Meteor-Files

I noticed when using the .write( ) to upload a file, it uploads straight to the file system and not the one set on the onAfterUpload( ) option.

In my case, am storing the images on GridFS, but the files uploaded using .write( ) does not get uploaded to MongoDB. Only on the file system.

Thanks

.write()

Most helpful comment

Yes, this is working. Thanks!

All 4 comments

Hello @mking200 ,

write(buffer [, opts, callback, proceedAfterUpload]) set fourth argument proceedAfterUpload to true.

Let me know if it helps

Sorry I forgot this option. I'll try it and let you know if it works.

Yes, this is working. Thanks!

Great, I'm glad it's solved

Please, support this project by:

Was this page helpful?
0 / 5 - 0 ratings