presto.js

presto.js is a small JavaScript library for splitting and transferring files

The basic idea is to split files into small chunks, send them simultaneously and rebuild them into files again on the server side.

File data is cut out in chunks of 1MB each and sent in parallel to achieve a faster transfer rate than the standard function. The chunk size and number of parallel transfers can be changed by the user.

Features

Example

See the Pen presto.js minimal example by Yu Watanabe (@yuw27b) on CodePen.

Documentation

Configuration

const presto = new Presto({ url: '/api/upload', ... });

Configuration options

Properties

Methods

Events

Presto offers the following events:

PrestoFile offers the following events:

License

MIT