Browse Source

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

Andrei Pfeiffer 5 years ago
parent
commit
ff32e34eb5
1 changed files with 14 additions and 0 deletions
  1. 14
    0
      docs/Guide.md

+ 14
- 0
docs/Guide.md View File

10
 - [Basic URL Source](Guide.md#basic-url-source)
10
 - [Basic URL Source](Guide.md#basic-url-source)
11
 - [Controlling navigation state changes](Guide.md#controlling-navigation-state-changes)
11
 - [Controlling navigation state changes](Guide.md#controlling-navigation-state-changes)
12
 - [Add support for File Upload](Guide.md#add-support-for-file-upload)
12
 - [Add support for File Upload](Guide.md#add-support-for-file-upload)
13
+- [Multiple files upload](Guide.md#multiple-files-upload)
13
 - [Add support for File Download](Guide.md#add-support-for-file-download)
14
 - [Add support for File Download](Guide.md#add-support-for-file-download)
14
 - [Communicating between JS and Native](Guide.md#communicating-between-js-and-native)
15
 - [Communicating between JS and Native](Guide.md#communicating-between-js-and-native)
15
 
16
 
17
+
16
 ### Basic inline HTML
18
 ### Basic inline HTML
17
 
19
 
18
 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 `['*']`.
20
 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
 
171
 
170
 ```
172
 ```
171
 
173
 
174
+### Multiple Files Upload
175
+
176
+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:
177
+
178
+```
179
+// multiple file selection
180
+<input type="file" multiple />
181
+
182
+// single file selection
183
+<input type="file" />
184
+```
185
+
172
 ### Add support for File Download
186
 ### Add support for File Download
173
 
187
 
174
 ##### iOS
188
 ##### iOS