Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

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

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

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

Problem courtesy of: alditis

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.

Solution courtesy of: Kwal

Discussion

View additional discussion.



This post first appeared on Node.js Recipes, please read the originial post: here

Share the post

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

×

Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription

×