Skip to content

hanicker/angularjs-file-upload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

angularjs-file-upload

Easy file upload with simple progress.


Dependencies

  • jquery.form.js
  • jquery.js

Usage

<!-- view.html -->
<div
  file-upload
  action='/api/v1/serie/image/{{ main.serie.id }}'
  btn-class='btn btn-small'
  btn-label="Choose Image"
  input-name="image"
  on-success='serieImageUploaded(responseText)'
  progress-class='btn btn-small'></div>
// ctrl.js
$scope.serieImageUploaded = function (resp) {
  var data = angular.fromJson(resp);
  $scope.main.serie.image = data.serie.image;
  $scope.main.serie.banner_tile_image = data.serie.banner_tile_image;
}

Example

enter image description here


Credits

About

Posts file to URL with progress indicator.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published