I need to upload a file to meteor, do some image manipulation on it (image conversion if necessary, generate thumbnail from image ) and then store it in an external image storage server (s3). This should be as fast as possible. Do you have any recommendations for a nodejs image processing library ? also how i can upload a file to meteorjs ?
Thanks
I ended up with the following solution:
1) meteor server side route for a custom upload url
__meteor_bootstrap__.app.stack.splice (0, 0, {
route: '/upload',
handle: function (req,res, next) {
//handle upload
}.future ()
});
2) use formidable nodejs module inside the function for file upload
Easiest solution I have found is using FilePicker.io. It's extremely easy to integrate into your Meteor App and plugs directly into S3.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With