Skip to content

Instantly share code, notes, and snippets.

@bengourley
Created June 18, 2012 13:40
Show Gist options
  • Save bengourley/2948429 to your computer and use it in GitHub Desktop.
Save bengourley/2948429 to your computer and use it in GitHub Desktop.
Fileupload API
var fileUpload = require('file-upload')
, gridfsAdapter = require('fileupload-gridfs')
var middleware = fileUpload({
adapter: gridfsAdapter({ dbName: 'mydb' })
}).middleware
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment