0.1.4 • Published 11 years ago

connect-multipart-gridform v0.1.4

Weekly downloads
35
License
-
Repository
github
Last release
11 years ago

#connect-multipart-gridform

Connect multipart middleware configured to use MongoDB GridFS for file storage.

install

npm install connect-multipart-gridform

use

var multipart = require('connect-multipart-gridform');
app.use(multipart(options));

options

Options work the same way as in the connect multipart middleware, with these additions:

The optional filename function is passed the file.name before streaming to MongoDB providing an opportunity to customize the filename with a prefix etc.

For the curious, the options are first passed into a gridform before passing on to connects multiple middleware.

why?

Connects multipart middleware uses formidable to process file uploads. formidable streams the files to disk. Now you can stream directly into GridFS.

tests

Run the tests with make test.

LICENCE

0.1.4

11 years ago

0.1.3

12 years ago

0.1.2

12 years ago

0.1.1

12 years ago

0.1.0

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago