An alternative solution is to use the Collection FileSystem package, which provides a complete solution for managing files, such as upload, download, sync, copy, etc.
It can then be connected to the local file system or even to Amazon S3.
Here is the repo: https://github.com/CollectionFS/Meteor-CollectionFS . First you need to add the main package:
meteor add cfs:standard-packages
And then the storage adapter you want to use:
Local file system (directory, e.g. / public, / uploads)
meteor add cfs:filesystem
Amazon S3 (my fav)
meteor add cfs:s3
Gridfs
meteor add cfs:gridfs
Even Dropbox!
meteor add cfs:dropbox
The document is really complete, you can find what you are looking for! :)
source share