2026-06-28 20:29:48 -07:00
2026-06-28 20:29:47 -07:00
2017-05-22 19:12:02 -05:00
2017-05-22 19:12:02 -05:00
2017-05-22 17:52:37 -05:00
2015-12-03 02:53:09 -06:00
2015-08-23 18:19:53 -05:00
2017-05-22 17:54:45 -05:00
2017-05-24 13:35:24 -05:00
2026-06-28 20:29:48 -07:00
2017-05-22 19:12:02 -05:00
2017-05-22 19:12:02 -05:00
2017-05-22 19:12:02 -05:00

tractor-beam

tractor-beam

npm build dependencies downloads license chat

Future-proof file upload

Directory upload using proposed Directory Upload spec as part of the new FileSystem API.

Overview

User should be able to drag and drop a folder and upload site which will be statically hosted by us. We will leverage the new Directory Upload proposal (part of the new FileSystem API) which is currently only supported in Firefox Nightly / Edge. Chrome 25+ can be supported with a polyfill.

Spec: https://wicg.github.io/directory-upload/proposal.html / http://w3c.github.io/filesystem-api/ Example: https://wicg.github.io/directory-upload/index.html

Flow

Create TractorBeam instance with options Options should include a parameter called postPath. postPath should either be a function that takes a file returns a string or a simply string

Install

$ npm install tractor-beam --save

License

BSD

S
Description
JavaScript library for drag-and-drop folder uploads using the Directory Upload API proposal.
Readme BSD-3-Clause
232 KiB
Languages
JavaScript 85.1%
CoffeeScript 14.9%