TUS.io angular client
Branch: master
Clone or download
Latest commit fc78023 Mar 23, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md Update README.md Mar 23, 2018
basic.js adaptation to TUS1.0.0 Oct 22, 2015
bower.json Wiredep needs main: attribute to correcly inject Dec 15, 2015
package.json package.json Jan 27, 2016

README.md

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);