Skip to content

Commit b51a296

Browse files
committed
Update README.md
1 parent 08c8d39 commit b51a296

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,11 @@ var MyCtrl = [ '$scope', '$upload', function($scope, $upload) {
5454
// headers: {'headerKey': 'headerValue'},
5555
// withCredentials: true,
5656
data: {myObj: $scope.myModelObj},
57-
file: file,
58-
// file: $files, //upload multiple files, this feature only works in HTML5 FromData browsers
59-
/* set file formData name for 'Content-Desposition' header. Default: 'file' */
60-
//fileFormDataName: myFile, //OR for HTML5 multiple upload only a list: ['name1', 'name2', ...]
61-
/* customize how data is added to formData. See #40#issuecomment-28612000 for example */
62-
//formDataAppender: function(formData, key, val){} //#40#issuecomment-28612000
57+
file: file, // or list of files: $files for html5 only
58+
/* set the file formData name ('Content-Desposition'). Default is 'file' */
59+
//fileFormDataName: myFile, //or a list of names for multiple files (html5).
60+
/* customize how data is added to formData. See #40#issuecomment-28612000 for sample code */
61+
//formDataAppender: function(formData, key, val){}
6362
}).progress(function(evt) {
6463
console.log('percent: ' + parseInt(100.0 * evt.loaded / evt.total));
6564
}).success(function(data, status, headers, config) {

0 commit comments

Comments
 (0)