Skip to content
This repository was archived by the owner on Dec 23, 2020. It is now read-only.

vencax/angular-tus-io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angular-tus-io UNMAINTAINED!!!!!!

TUS.io client with angular as the only dependency.

installation

bower install angular-tus-io

features

  • HTML5 FileAPI used
  • per chunk uploads
  • chunk retry mechanism

planned

  • CRC of chunks
  • variable chunk size

example of usage

var _onProgress = function(bytesUploaded) {
  percentage = (bytesUploaded / $scope.file.size * 100).toFixed(2);
  $scope.file.progress = percentage
};

var _onError = function(error) {
  $scope.file.status = 'failed: ' + error;
};

var _onDone = function() {
  $scope.file.status = 'uploaded';
};

var uploader = new BasicTUS.Client($scope.file, options);
uploader.then(_onDone, _onError, _onProgress);

About

TUS.io angular client

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •