How to integrate project Expressjs with jQuery-File-Upload?

express, file-upload, jquery, node.js, socket.io

Solution

express has formidable baked in via Connect's multi-part middleware e.g. you can simply POST files to an particular route and then use req.files to handle anything that has been uploaded.

A very simple option for handling file uploads is via the jQuery Form Plugin, and if you're using Jade as your template engine, you simply need a form that has a file input and the plugin should take care of the rest.

Problem

jQuery-File-Upload works well with Nodejs, but I found it difficult to integrate with Expressjs. Any suggestions? Thanks for your attention. PD: https://github.com/blueimp/jQuery-File-Upload

Original source