Skip to content

Commit f259919

Browse files
committed
Update README.md
1 parent 6e1876b commit f259919

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Lightweight Angular JS directive to upload files. Features:
1313
* All non-HTML5 code is in a separate shim file and could be easily removed if you only supports HTML5
1414
* Flash FileAPI will be loaded on demand for non-HTML5 FormData browsers so no extra load for HTML5 browsers.
1515
* `$upload` method can be configured to be either `POST` or `PUT` for HTML5 browsers.
16+
* `$upload.http` progress event for normal http `POST` or `PUT` request with the file content or any data. (HTML5 only)
1617

1718
## Usage
1819

@@ -75,6 +76,8 @@ var MyCtrl = [ '$scope', '$upload', function($scope, $upload) {
7576

7677
**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.
7778

79+
You can also use `$upload.http` to send the file content 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+
7881
## Old browsers
7982

8083
For browsers not supporting HTML5 FormData (IE8, IE9, ...) [FileAPI](https://github.com/mailru/FileAPI) module is used.

0 commit comments

Comments
 (0)