@raincatcher/filestore-client
v1.1.2
Published
RainCatcher file storage client
Downloads
11
Keywords
Readme
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
Implement the HttpClient Interface
Import FileManager
var FileManager = require('@raincatcher/filestore-client').FileManager;
...
var fileManager = new FileManager(serverUrl, fileQueueName, httpClient);
- Use the FileManager for uploading/downloading files to and from the server.
fileManager.scheduleFileToBeUploaded(fileQueueEntry);
fileManager.scheduleFileToBeDownloaded(fileQueueEntry);
- Ensure the fileQueueEntry adheres to the FileQueueEntry interface.
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.