Skip to content

Latest commit

 

History

History
75 lines (37 loc) · 1.85 KB

internal.api.md

File metadata and controls

75 lines (37 loc) · 1.85 KB

Public and Private API

API documentation automatically generated by docmeteor.


File: "gridfs.server.js" Where: {server}


new fsStore.GridFS(name, options)  Server

This method GridFS is defined in FS.Store

Arguments

  • name {String}

The store name

  • options {Object}

    • beforeSave {Function} (Optional)

    Function to run before saving a file from the server. The context of the function will be the FS.File instance we're saving. The function may alter its properties.

    • maxTries {Number} (Optional, Default = 5)

    Max times to attempt saving a file

Returns {FS.StorageAdapter} An instance of FS.StorageAdapter.

Creates a GridFS store instance on the server. Inherits from FS.StorageAdapter type.

FS.Store.GridFS = function(name, options) { ... gridfs.server.js:16


File: "gridfs.client.js" Where: {client}


new fsStore.GridFS(name, options)  Client

This method GridFS is defined in FS.Store

Arguments

  • name {String}

The store name

  • options {Object}

    • beforeSave {Function} (Optional)

    Function to run before saving a file from the client. The context of the function will be the FS.File instance we're saving. The function may alter its properties.

    • maxTries {Number} (Optional, Default = 5)

    Max times to attempt saving a file

Returns {undefined}

Creates a GridFS store instance on the client, which is just a shell object storing some info.

FS.Store.GridFS = function(name, options) { ... gridfs.client.js:13