How would one handle a file upload with Meteor?

后端 未结 12 1437
不知归路
不知归路 2020-12-07 07:56

What would be the canonical way to handle a file upload with Meteor?

12条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-07 08:11

    There is a new package: edgee:slingshot. It does not upload the files to your meteor server, but it is better that way as it allows the meteor server to focus on its primary objective of serving the meteor app instead of handling costly file transfers.

    Instead it uploads files to cloud storage services. Currently it supports AWS S3 and Google Cloud Files, but it will also support Rackspace Cloud Files and perhaps Cloudinary in the future.

    Your meteor server merely acts as as a coordinator.

    Direct VS Indirect uploads

    It is also a very versatile and light-weight package.

提交回复
热议问题