@@ -54,12 +54,11 @@ var MyCtrl = [ '$scope', '$upload', function($scope, $upload) {
54
54
// headers: {'headerKey': 'headerValue'},
55
55
// withCredentials: true,
56
56
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){}
63
62
}).progress (function (evt ) {
64
63
console .log (' percent: ' + parseInt (100.0 * evt .loaded / evt .total ));
65
64
}).success (function (data , status , headers , config ) {
0 commit comments