1.1.2 • Published 8 years ago

@raincatcher/filestore-client v1.1.2

Weekly downloads
2
License
Apache-2.0
Repository
-
Last release
8 years ago

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.