-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Correct ls to return array of file path's instead of the whole document object * Correct read and rm to use fd as a string instead of an object * Ability to use callback function for read instead of only a stream * Fix some readme errors
- Loading branch information
1 parent
8784090
commit e195af0
Showing
3 changed files
with
39 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ | |
|
||
GridFS adapter for receiving [upstreams](https://github.com/balderdashy/skipper#what-are-upstreams). Particularly useful for handling streaming multipart file uploads from the [Skipper](https://github.com/balderdashy/skipper) body parser. | ||
|
||
Currently only supports Node 6 and up | ||
|
||
|
||
======================================== | ||
|
||
|
@@ -27,7 +29,7 @@ Also make sure you have skipper [installed as your body parser](http://beta.sail | |
req.file('avatar') | ||
.upload({ | ||
adapter: require('skipper-gridfs'), | ||
uri: 'mongodb://jimmy@[email protected].com:27017/myBucket' | ||
uri: 'mongodb://username:password@myhost.com:27017/myDatabase' | ||
}, function whenDone(err, uploadedFiles) { | ||
if (err) return res.negotiate(err); | ||
else return res.ok({ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters