Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
danialfarid committed Oct 15, 2013
1 parent 70baf1c commit d9c94f2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ angular-file-upload
===================

New in version 1.0.0:
Support file upload progress.
Support file drag and drop.
* File upload progress support.
* File drag and drop support.


**Click here for <a href="http://angular-file-upload.appspot.com/" target="_blank">DEMO</a>**
Expand Down Expand Up @@ -35,11 +35,12 @@ var MyCtrl = [ '$scope', '$http', function($scope, $http) {
var $file = $files[i];
$http.uploadFile({
url: 'server/upload/url', //upload.php script, node.js route, or servlet upload url)
// headers: {'optional', 'value'}
data: {myObj: $scope.myModelObj},
file: $file
}).progress(function(evt) {
console.log('percent: ' + parseInt(100.0 * evt.loaded / evt.total));
}).then(function(data, status, headers, config) {
console.log('percent: ' + parseInt(100.0 * evt.loaded / evt.total));
}).then(function(data, status, headers, config) {
// file is uploaded successfully
console.log(data);
});
Expand Down

0 comments on commit d9c94f2

Please sign in to comment.