Skip to content

Commit 0cf8369

Browse files
committed
Update README.md
1 parent 76c9f23 commit 0cf8369

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ var MyCtrl = [ '$scope', '$upload', function($scope, $upload) {
5656
file: file,
5757
// file: $files, //upload multiple files, this feature only works in HTML5 FromData browsers
5858
/* set file formData name for 'Content-Desposition' header. Default: 'file' */
59-
//fileFormDataName: myFile,
59+
//fileFormDataName: myFile, //OR for HTML5 multiple upload only a list: ['name1', 'name2', ...]
6060
/* customize how data is added to formData. See #40#issuecomment-28612000 for example */
6161
//formDataAppender: function(formData, key, val){}
6262
}).progress(function(evt) {
@@ -72,12 +72,12 @@ var MyCtrl = [ '$scope', '$upload', function($scope, $upload) {
7272
}];
7373
```
7474

75-
**Note**: `angular.file-upload-shim.js` must be loaded before `angular.js` and is only needed if you are supporting non-HTML5 FormData browsers or you need the support for upload progress or cancel.
75+
**Note**: `angular.file-upload-shim.js` must be loaded before `angular.js` and is only needed if you are supporting non-HTML5 FormData browsers or you need to support upload progress or cancel.
7676

77-
**Upload multiple files**: Only for HTML5 FormData browsers (not IE8-9) if you pass an array of files to `file` option it will upload all of them together in one request. The formData file name will have the index appended to it (i.e. `file0`, `file1`, etc.). If you want it cross browser you need to iterate through files and upload them one by one like the code above.
77+
**Upload multiple files**: Only for HTML5 FormData browsers (not IE8-9) if you pass an array of files to `file` option it will upload all of them together in one request. In this case the `fileFormDataName` could be an array of names or a single string which would have the index appended to it (i.e. `file0`, `file1`, etc.). If you want a cross browser approach you need to iterate through files and upload them one by one like the code above. This is due to the limitation of Flash file upload.
7878

7979
You can also use `$upload.http()` to send the file binary or any data to the server while being able to listen to progress event. See [#88](https://github.com/danialfarid/angular-file-upload/issues/88) for more details.
80-
This enables angular $http() to listen to progress event for HTML5 browsers.
80+
This equivalent to angular $http() but allow you to listen to progress event for HTML5 browsers.
8181

8282
## Old browsers
8383

0 commit comments

Comments
 (0)