Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Allow opening a file by id and name #40

merged 1 commit into from

2 participants


The GridFS api will inspect the arguments to figure out what it should do with the various pieces passed in, so this patch should work transparently.

@guileen guileen merged commit b0c7881 into kissjs:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 16, 2012
  1. Allow opening a file by id and name

    Paul Gebheim committed
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/mongoskin/gridfs.js
4 lib/mongoskin/gridfs.js
@@ -11,13 +11,13 @@ var SkinGridStore = exports.SkinGridStore = function(skinDb) {
* @param filename: filename or ObjectId
* callback(err, gridStoreObject)
*/ = function(filename, mode, options, callback){ = function(id, filename, mode, options, callback){
callback = options;
options = undefined;
}, db) {
- new GridStore(db, filename, mode, options).open(callback);
+ new GridStore(db, id, filename, mode, options).open(callback);
Something went wrong with that request. Please try again.