Commit fd670e8837b940acd7eb150aac14faa66bc20c58

Authored by Andrei Pfeiffer
Committed by GitHub
1 parent 89ceb5fb
Exists in master

Update README.md

Showing 1 changed file with 9 additions and 4 deletions   Show diff stats
README.md
... ... @@ -13,7 +13,8 @@ What this module does:
13 13 * extracts it into a separate module like [lucasferreira's react-native-webview-android][lucasferreira] for easier setup;
14 14 * adds the video recording functionality;
15 15 * adds support for the `accept` attribute;
16   -* adds support for sdk 26, using `FileProvider`
  16 +* adds support for the `multiple` attribute;
  17 +* adds support for sdk 26, using `FileProvider`;
17 18  
18 19 It should work with React Native 0.50+, and reverts to the built-in WebView on iOS.
19 20  
... ... @@ -166,7 +167,7 @@ export default class App extends Component {
166 167  
167 168 ### Controlling image and/or video
168 169  
169   -You can use the `accept` attribute on the `<input />` element to control what type of media your users will be allowed to upload.
  170 +You can use the `accept` attribute on the `<input />` element to control what type of media your users will be allowed to upload:
170 171  
171 172 * `<input type="file" />` will default to images and videos
172 173 * `<input type="file" accept="image/*" />` will allow only image capture / selection
... ... @@ -175,9 +176,13 @@ You can use the `accept` attribute on the `&lt;input /&gt;` element to control what ty
175 176  
176 177 Check out the [example html][example].
177 178  
178   -# @todo
  179 +### Controlling multiple file selection
179 180  
180   -The default accepted mime types are `"image/*, video/*"`, which don't include `audio`. This default could be customized from the React Native Component and maybe we can default to `"*/*"`.
  181 +You can use the `multiple` attribute on the `<input />` element to allow users to select multiple existing files:
  182 +
  183 +```
  184 +<input type="file" multiple />
  185 +```
181 186  
182 187 [dahjelle]: https://github.com/dahjelle/react-native-android-webview-file-image-upload
183 188 [lucasferreira]: https://github.com/lucasferreira/react-native-webview-android
... ...