Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

need node.js module for mime multipart/related [closed]

Tags:

node.js

I'm looking for a node.js module that can generate and parse mime multipart/related http payloads. So far I've seen many modules focused on multipart/form-data so their api is very biased to handling fields etc. I need something more generic.

As an example, I need to generate/parse payload which may consist of 5 jpeg files without any form part.

like image 983
Yaron Naveh Avatar asked Feb 10 '12 10:02

Yaron Naveh


1 Answers

So far, I haven't seen any complete solutions for multipart parsing/writing. Some options:

  • node-formidable has some support for multi-part parsing
  • There is also multipart-parser for - well - multi-part parsing
  • Writing multi-part data is somewhat trivial. Some tutorials:
    • multipart/form-data uploads using node.js and http.request
    • Server side multipart/form-data uploads from nodejs
like image 88
jsalonen Avatar answered Oct 10 '22 00:10

jsalonen