https://github.com/makeomatic/ms-files-transport
abstract class with tests for ms-files service
https://github.com/makeomatic/ms-files-transport
Last synced: about 1 year ago
JSON representation
abstract class with tests for ms-files service
- Host: GitHub
- URL: https://github.com/makeomatic/ms-files-transport
- Owner: makeomatic
- License: mit
- Created: 2015-11-20T14:22:05.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-04-28T20:39:50.000Z (almost 9 years ago)
- Last Synced: 2025-02-05T13:41:01.694Z (about 1 year ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ms-files-transport
abstract class with tests for ms-files service
## Methods
### initResumableUpload(metadata)
Initiates resumable upload - could either be a multipart upload for amazon, or a real resumable upload with gce, etc.
Idea is to return upload id and instructions for what we are to do next
### completeResumableUpload(id)
Notifies server if resumable upload had finished. Unless this call is made within X amount of time
we must cleanup everything that was created during this upload
### createSignedURL(metadata)
Creates signed url, which provides access to a certain file for a limited amount of time
### postProcess(file, functionToPerform)
Buffers `file` and passes to `functionToPerform`, which is defined my implementation of a parent service
### readFile(file, opts)
Provides convenience method to read a file from a bucket