javascript - Upload POST submitted image in Meteor -


i getting started , not find or understand on uploading post submitted image in meteor, supported right out of box, if not how handle it?

so far manage break down as:

  1. i need make server side route handle post request (not solid idea on it)
  2. i need use kind of middleware accepting post data (file/image) [no idea how or learn it]

  3. integrate image upload meteor package received data , upload image [with little playing around may can it]

so question how do, step 1, 2 , 3, have into? if bad approach, please suggest me one.

update

the reason need handle post on own because needed upload images send wysiwyg text editors, many of them send inline images via post url. meteor-collectionfs cannot used post , couldn't figure out how integrate meteor upload mapped post url , send data meteor upload insert after receiving file object @ server.

technically speaking more or less have idea of need do. however, implementing image upload has lot of nuances a) teach quite bit if decide implement on own , b) pain implement yourself.

if want pretty robust, scalable, , customizable image upload solution suggest:

https://github.com/tomitrescak/meteor-uploads

it build on top of jquery file uploader, successful, maintained, , easy use upload project. alternatively, if upload mongo gridfs might want at:

https://github.com/collectionfs/meteor-collectionfs

both solutions each take different approach problem. each work pretty out of box give plenty of room configurability.


Comments