Socket
Socket
Sign inDemoInstall

ms-files-transport

Package Overview
Dependencies
1
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ms-files-transport

Abstract file transport for s3-like APIs


Version published
Weekly downloads
8
decreased by-78.38%
Maintainers
1
Install size
5.41 kB
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 26 Dec 2016

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc