cluster0:upload-ddp

v0.0.13Published 3 weeks ago

zcfs:upload-ddp

Looking for maintainers - please reach out! This package is to be archived due to inability to find contributors, thanks to everyone who helped make it possible.

If you're looking for an alternative, we highly recommend Meteor-Files by VeliovGroup


This is a Meteor package that provides DDP uploads for CollectionFS.

CollectionFS uses HTTP uploads by default because they currently work better, but anyone with an interest in uploading over DDP can swap in this package instead of the zcfs:upload-http package.

Custom Connection

To use a custom DDP connection for uploads, override the default transfer queue with your own, passing in your custom connection:

1if (Meteor.isClient) {
2  // There is a single downloads transfer queue per client (not per FS.Collection)
3  FS.uploadQueue = new UploadTransferQueue({ connection: DDP.connect(myUrl) });
4}