https://github.com/makeomatic/ms-files-gce
google cloud storage adapter for ms-files
https://github.com/makeomatic/ms-files-gce
Last synced: 8 months ago
JSON representation
google cloud storage adapter for ms-files
- Host: GitHub
- URL: https://github.com/makeomatic/ms-files-gce
- Owner: makeomatic
- License: mit
- Created: 2015-11-20T14:21:40.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-02-05T00:10:18.000Z (about 7 years ago)
- Last Synced: 2025-05-28T22:51:30.244Z (9 months ago)
- Language: JavaScript
- Size: 81.1 KB
- Stars: 2
- Watchers: 6
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ms-files-gce
google cloud storage adapter for ms-files
## Considerations
Useful links:
1. https://cloud.google.com/storage/docs/json_api/v1/how-tos/upload#resumable
2. https://cloud.google.com/storage/docs/access-control
3. https://cloud.google.com/storage/docs/json_api/v1/#Objects
4. https://github.com/GoogleCloudPlatform/gcloud-node#google-cloud-storage
## Workflow
### Uploading
Create resumable upload on a server, pass session id to the client, let the client complete uploading.
Client must notify the server when upload is complete. Once it's done - server checks this information and starts
post-processing
### Downloading
1. Client requests file to download
2. Server check authentication rights
3. On success - creates signed URL and returns 302 redirect + URL
### Post-processing
Once initial file upload is completed - server may post-process the file. Ideally it would create a new file, which would act as a header or footer, save it in the same bucket with similar access rights. After that compose method should be called, which would concatenate files without using extra bandwidth