Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
src
test
.gitignore
.npmignore
README.md
package.json
tsconfig.json

README.md

RainCatcher FileStore client

RainCatcher FileStore Client provides a manager which provides the support for:

  • Downloading files from a server.
  • Uploading files from a mobile device to a server.

Usage

  1. Implement the HttpClient Interface

  2. Import FileManager

var FileManager = require('@raincatcher/filestore-client').FileManager;
...
var fileManager = new FileManager(serverUrl, fileQueueName, httpClient);
  1. Use the FileManager for uploading/downloading files to and from the server.
fileManager.scheduleFileToBeUploaded(fileQueueEntry);
fileManager.scheduleFileToBeDownloaded(fileQueueEntry);

HttpClient Interface

The HttpClient interface should be implemented in order to enable the FileStore client to make network requests for uploading and downloading files to and from a server.