mirror of
https://github.com/status-im/react-native-webview.git
synced 2025-02-22 16:58:34 +00:00
chore(docs): Add multiple file upload selection in the docs (#382)
This commit is contained in:
parent
74a20865b0
commit
ff32e34eb5
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user