Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Connect middleware for formaline
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
support
.gitmodules
History.md
LICENSE
Readme.md
index.js
package.json

Readme.md

Connect Formaline

Connect Formaline is a multipart / urlencoded form parsing middleware utilizing node-formaline.

Installation

via npm:

$ npm install connect-formaline

Example

var form = require('connect-form');

connect(
  formaline({/* empty config object */}),
  function(req, res){
    if (req.method == 'POST'){
      var workWithFiles = function(json, res){
        /* work with uploaded files here */
      }

      req.form.on( 'loadend', function(json, res){
        workWithFiles(json, res);
        res.end(); // end response and work with files
      });

    }
  })
.listen(3000);
Something went wrong with that request. Please try again.