Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 715 Bytes

File metadata and controls

21 lines (16 loc) · 715 Bytes

node-formdata-parser

It's a simple parser for requests whose content type is 'form-data' know as file upload. The parser has ability to parse the normal params and create file

install

  git clone git@github.com:jianzhou520/node-formdata-parser.git

start

  node server

upload file to use

open the index.html file just in chrome or other morden browser, select a file(now only support png file, you can extend in server.js file) to upload. You will see the server get all the request fileds and write a copy file to the files directory

key point

Buffer operation & split the request body

one more thing

This is a very simple example to show my way in parsing formData in node