Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ms-files-gce

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ms-files-gce

Abstract file transport for s3-like APIs

  • 3.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 10 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc