chore(docs): Add multiple file upload selection in the docs (#382)

This commit is contained in:
Andrei Pfeiffer 2019-03-07 11:13:22 +02:00 committed by Thibault Malbranche
parent 74a20865b0
commit ff32e34eb5
1 changed files with 14 additions and 0 deletions

View File

@ -10,9 +10,11 @@ _This guide is currently a work in progress._
- [Basic URL Source](Guide.md#basic-url-source)
- [Controlling navigation state changes](Guide.md#controlling-navigation-state-changes)
- [Add support for File Upload](Guide.md#add-support-for-file-upload)
- [Multiple files upload](Guide.md#multiple-files-upload)
- [Add support for File Download](Guide.md#add-support-for-file-download)
- [Communicating between JS and Native](Guide.md#communicating-between-js-and-native)
### Basic inline HTML
The simplest way to use the WebView is to simply pipe in the HTML you want to display. Note that setting an `html` source requires the [originWhiteList](Reference.md#originWhiteList) property to be set to `['*']`.
@ -169,6 +171,18 @@ WebView.isFileUploadSupported().then(res => {
```
### Multiple Files Upload
You can control __single__ or __multiple__ file selection by specifing the [`multiple`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#multiple) attribute on your `input` element:
```
// multiple file selection
<input type="file" multiple />
// single file selection
<input type="file" />
```
### Add support for File Download
##### iOS