Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
danialfarid committed Dec 30, 2013
1 parent 6e1876b commit f259919
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Lightweight Angular JS directive to upload files. Features:
* All non-HTML5 code is in a separate shim file and could be easily removed if you only supports HTML5
* Flash FileAPI will be loaded on demand for non-HTML5 FormData browsers so no extra load for HTML5 browsers.
* `$upload` method can be configured to be either `POST` or `PUT` for HTML5 browsers.
* `$upload.http` progress event for normal http `POST` or `PUT` request with the file content or any data. (HTML5 only)

## Usage

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

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

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.

## Old browsers

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

0 comments on commit f259919

Please sign in to comment.