Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

meteorjs image upload / conversion

Tags:

meteor

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

like image 860
user1528384 Avatar asked Dec 20 '22 18:12

user1528384


2 Answers

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

like image 112
user1528384 Avatar answered Jan 15 '23 12:01

user1528384


Easiest solution I have found is using FilePicker.io. It's extremely easy to integrate into your Meteor App and plugs directly into S3.

like image 34
wcolbert Avatar answered Jan 15 '23 11:01

wcolbert