Skip to content
This repository has been archived by the owner on Sep 20, 2018. It is now read-only.
/ tus-jquery-client Public archive

[DEPRECATED] A jQuery plugin implementing the tus resumable upload protocol.

License

Notifications You must be signed in to change notification settings

tus/tus-jquery-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WARNING: Deprecated Project

tus-jquery-client is not maintained anymore and no support is available. Please use tus-js-client for a modern tus client for browsers. More implementations for different environments can be found on tus.io.

tus-jquery-client

Build Status

A jQuery client implementing the tus resumable upload protocol. If you looking for a browser client without the need of jQuery, you may enjoy tus-js-client.

Example

The code below outlines how the API could work.

$('input[type=file]').change(function() {
  var options = { endpoint: 'http://localhost:1080/files' };
  var input   = $(this);

  tus
    .upload(this.files[0], options)
    .fail(function(error) {
      console.log('upload failed', error);
    })
    .always(function() {
       input.val('');
    })
    .progress(function(e, bytesUploaded, bytesTotal) {
       console.log(bytesUploaded, bytesTotal);
    })
    .done(function(url, file) {
      console.log(url);
      console.log(file.name);
    });
});

Try the demo

Without installing anything, you can testdrive over at the tus.io website.

But for local development, here's how to run the repo-included demo:

cd demo
npm install
node server.js

License

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

About

[DEPRECATED] A jQuery plugin implementing the tus resumable upload protocol.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published