All Projects → tus → Tus Js Client

tus / Tus Js Client

Licence: mit
A pure JavaScript client for the tus resumable upload protocol

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Tus Js Client

Storage Based Queue
Javascript queue library with persistent storage based queue mechanism for the browsers environments. Specially designed for offline.
Stars: ✭ 33 (-97.13%)
Mutual labels:  cordova, browser
Code Push
A cloud service that enables Cordova and React Native developers to deploy mobile app updates directly to their users’ devices.
Stars: ✭ 4,128 (+258.64%)
Mutual labels:  cordova, reactnative
Simple Ionic 3 App
A simple Ionic 3 app with get requests to a local JSON file. It showcases how to set up a simple service and provides some nice components for your own application.
Stars: ✭ 59 (-94.87%)
Mutual labels:  cordova
Onsenui
Mobile app development framework and SDK using HTML5 and JavaScript. Create beautiful and performant cross-platform mobile apps. Based on Web Components, and provides bindings for Angular 1, 2, React and Vue.js.
Stars: ✭ 8,518 (+640.05%)
Mutual labels:  cordova
Blockstack Browser
The Blockstack Browser
Stars: ✭ 1,119 (-2.78%)
Mutual labels:  browser
Connectivity
Detect if the network is up (do we have connectivity?)
Stars: ✭ 58 (-94.96%)
Mutual labels:  browser
Tib
Easy e2e browser testing in Node
Stars: ✭ 64 (-94.44%)
Mutual labels:  browser
Wkzombie
WKZombie is a Swift framework for iOS/OSX to navigate within websites and collect data without the need of User Interface or API, also known as Headless browser. It can be used to run automated tests / snapshots and manipulate websites using Javascript.
Stars: ✭ 1,105 (-4%)
Mutual labels:  browser
Webc
Webconverger's curated chroot from which updates originate
Stars: ✭ 66 (-94.27%)
Mutual labels:  browser
Ip Kvm Interface
DIY IP-KVM for Remote Desktop Access
Stars: ✭ 62 (-94.61%)
Mutual labels:  browser
Parser Javascript
Browser sniffing gone too far — A useragent parser library for JavaScript
Stars: ✭ 66 (-94.27%)
Mutual labels:  browser
Testbench Dusk
[Package] Laravel Dusk Testing Helper for Package Development
Stars: ✭ 61 (-94.7%)
Mutual labels:  browser
Browser Shell
A Linux command-line shell in the browser
Stars: ✭ 60 (-94.79%)
Mutual labels:  browser
Level Browserify
No longer maintained: superseded by level v5.0.0.
Stars: ✭ 64 (-94.44%)
Mutual labels:  browser
Carpoolear
The open source Vue.js frontend (mobile and cordova app) for the argentinian carpooling application: Carpoolear
Stars: ✭ 59 (-94.87%)
Mutual labels:  cordova
Cyberfox
cyberfox code repository
Stars: ✭ 66 (-94.27%)
Mutual labels:  browser
Vue Mobile Mint
🍔 🍖 🍴基于mint-ui的饿了么外卖平台混合app(仿饿了么)
Stars: ✭ 59 (-94.87%)
Mutual labels:  cordova
React Native Spaceviewer
See and search upcoming and previous rocket space launches! Built with React Native, using Detox E2E tests, Fastlane and Github Actions for app store deployment.
Stars: ✭ 61 (-94.7%)
Mutual labels:  reactnative
Ziya
✏️ Your local in-browser editor
Stars: ✭ 63 (-94.53%)
Mutual labels:  browser
Cordovue
A sample Apache Cordova application using VueJS.
Stars: ✭ 66 (-94.27%)
Mutual labels:  cordova

tus-js-client

Tus logo

tus is a protocol based on HTTP for resumable file uploads. Resumable means that an upload can be interrupted at any moment and can be resumed without re-uploading the previous data again. An interruption may happen willingly, if the user wants to pause, or by accident in case of an network issue or server outage.

tus-js-client is a pure JavaScript client for the tus resumable upload protocol and can be used inside browsers, Node.js, React Native and Apache Cordova applications.

Protocol version: 1.0.0

This branch contains tus-js-client v2. If you are looking for the previous major release, after which breaking changes have been introduced, please look at the v1.8.0 tag.

Example

input.addEventListener("change", function(e) {
    // Get the selected file from the input element
    var file = e.target.files[0]

    // Create a new tus upload
    var upload = new tus.Upload(file, {
        endpoint: "http://localhost:1080/files/",
        retryDelays: [0, 3000, 5000, 10000, 20000],
        metadata: {
            filename: file.name,
            filetype: file.type
        },
        onError: function(error) {
            console.log("Failed because: " + error)
        },
        onProgress: function(bytesUploaded, bytesTotal) {
            var percentage = (bytesUploaded / bytesTotal * 100).toFixed(2)
            console.log(bytesUploaded, bytesTotal, percentage + "%")
        },
        onSuccess: function() {
            console.log("Download %s from %s", upload.file.name, upload.url)
        }
    })

    // Start the upload
    upload.start()
})

Documentation

Build status

Build Status

License

This project is licensed under the MIT license, see LICENSE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].