Evaporatejs

Javascript library for browser to S3 multipart resumable uploads
Alternatives To Evaporatejs
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Resumable.js4,32547332 years ago2November 06, 2017164mitJavaScript
A JavaScript library for providing multiple simultaneous, stable, fault-tolerant and resumable/restartable uploads via the HTML5 File API.
Flow.js2,8163192 years ago8June 05, 2020120mitJavaScript
A JavaScript library providing multiple simultaneous, stable, fault-tolerant and resumable/restartable file uploads via the HTML5 File API.
Android Upload Service2,73019332 months ago19November 04, 20214apache-2.0Kotlin
Easily upload files (Multipart/Binary/FTP out of the box) in the background with progress notification. Support for persistent upload requests, customizations and custom plugins.
Evaporatejs1,76226124 months ago51October 08, 201791JavaScript
Javascript library for browser to S3 multipart resumable uploads
Express Fileupload1,4083,0564514 months ago45May 24, 202238mitJavaScript
Simple express file upload middleware that wraps around busboy
Graphql Upload1,3742,286116a month ago18June 28, 20223mitJavaScript
Middleware and an Upload scalar to add support for GraphQL multipart requests (file uploads via queries and mutations) to various Node.js GraphQL servers.
Graphql Multipart Request Spec896
2 months ago2
A spec for GraphQL multipart form requests (file uploads).
Uploader65723279 months ago24January 05, 202240otherJavaScript
A JavaScript library providing multiple simultaneous, stable, fault-tolerant and resumable/restartable file uploads via the HTML5 File API.
Mod0burpuploadscanner439
2 months ago62otherPerl
HTTP file upload scanner for Burp Proxy
S3 Upload Stream320303863 years ago19December 04, 201422mitJavaScript
A Node.js module for streaming data to Amazon S3 via the multipart upload API
Alternatives To Evaporatejs
Select To Compare


Alternative Project Comparisons
Readme

Evaporate

A Complete File Upload API for AWS S3

Evaporate is a JS library for uploading files from a browser to AWS S3, using parallel S3's multipart uploads with MD5 checksum support and control over pausing / resuming the upload.

Build Status Code Climate

Table of Contents

Help us test our v3!

We're in the final stages of migrating the library to Typescript and Webpack, and we're doing it to increase the maintainability of the project, but we also had reports of increased performance and lower memory usage!

The new version will foster an increase in the ease of contributing and onboarding of new maintainers.

But don't worry, as there were no contract changes, if you're using our v2 it should work out of the box.

To test it, it's very simple, you just have to install the library like this:

npm install [email protected]/EvaporateJS#pull/448/head

And that's it! It should immediately work. If you have some feedback about it, please post it here.

Features

Configurable

  • Configurable number of parallel uploads for each part (maxConcurrentParts)

  • Configurable MD5 Checksum calculations and handling for each uploaded part (computeContentMd5)

  • Pluggable signing methods with customAuthMethod to support AWS Lambda, async functions and more.

Resilient

  • S3 Transfer Acceleration (s3Acceleration)

  • Robust recovery when uploading huge files. Only parts that have not been fully uploaded again. (s3FileCacheHoursAgo, allowS3ExistenceOptimization)

  • Ability to pause and resume downloads at will

  • Signing methods can respond to 401 and 403 response statuses and not trigger the automatic retry feature.

  • AWS Signature Version 2 and 4 (awsSignatureVersion)

Performant

  • Reduced memory footprint when calculating MD5 digests.

  • Parallel file uploads while respecting maxConcurrentParts.

  • If Evaporate reuses an interrupted upload or avoids uploading a file that is already available on S3, the new callback nameChanged will be invoked with the previous object name at the earliest moment. This indicates that requested object name was not used.

Monitorable

  • The progress() and complete() callbacks provide upload stats like transfer rate and time remaining.

  • Pause, Resume, Cancel can act on all in-progress file uploads

Cross Platform

  • Support for Node.js FileSystem (fs) ReadbleStreams. This means you can use Electron to upload a file directly from the file system's native File picker and avoid the usual browser restrictions.

Installation

$ npm install evaporate

API & Usage

The documentation for the usage of the whole API is available here.

This is a simple example of how you can configure it:

const Evaporate = require('EvaporateJS');
const Crypto = require('crypto');

const config = {
  signerUrl: SIGNER_URL,
  aws_key: AWS_KEY,
  bucket: AWS_BUCKET,
  cloudfront: true,
  computeContentMd5: true,
  cryptoMd5Method: data => Crypto
  .createHash('md5')
  .update(data)
  .digest('base64');
};

const uploadFile = evaporate => {
  const file = new File([""], "file_object_to_upload");

  const addConfig = {
    name: file.name,
    file: file,
    progress: progressValue => console.log('Progress', progressValue),
    complete: (_xhr, awsKey) => console.log('Complete!'),
  }

  /*
    The bucket and some other properties
    can be changed per upload
  */

  const overrides = {
    bucket: AWS_BUCKET_2
  };

  evaporate.add(addConfig, overrides)
    .then(
      awsObjectKey =>
        console.log('File successfully uploaded to:', awsObjectKey),
      reason =>
        console.log('File did not upload sucessfully:', reason);
    )
}

return Evaporate.create(config).then(uploadFile);

More examples are available here.

Don't forget to check out the Browser Compatibility and Important Usage Notes pages for usage details.

Authors

Maintainers

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

This package is licensed under the BSD 3-Clause license

Popular Upload Projects
Popular Multipart Projects
Popular Networking Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Javascript
Aws
Upload
S3
Multipart