瀏覽代碼

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

Andrei Pfeiffer 5 年之前
父節點
當前提交
ff32e34eb5
共有 1 個檔案被更改,包括 14 行新增0 行删除
  1. 14
    0
      docs/Guide.md

+ 14
- 0
docs/Guide.md 查看文件

@@ -10,9 +10,11 @@ _This guide is currently a work in progress._
10 10
 - [Basic URL Source](Guide.md#basic-url-source)
11 11
 - [Controlling navigation state changes](Guide.md#controlling-navigation-state-changes)
12 12
 - [Add support for File Upload](Guide.md#add-support-for-file-upload)
13
+- [Multiple files upload](Guide.md#multiple-files-upload)
13 14
 - [Add support for File Download](Guide.md#add-support-for-file-download)
14 15
 - [Communicating between JS and Native](Guide.md#communicating-between-js-and-native)
15 16
 
17
+
16 18
 ### Basic inline HTML
17 19
 
18 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,6 +171,18 @@ WebView.isFileUploadSupported().then(res => {
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 186
 ### Add support for File Download
173 187
 
174 188
 ##### iOS