Implementation of input type file chooser to allow to capture, record and upload file #1061
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently input type='file' only allows to select a file from explorer/file picker. This PR has been raised to add a feature to show the action chooser for Camera, Video File. This allows users to capture the file or simply choose from the explorer.
Platforms affected
Android
Motivation and Context
This enhances the functionality of the plugin to behave the same way as standard browser. The same way we can capture the image from camera when input type is file in html element with environment attribute.
Description
Shown a three options to choose from whether select a file or capture it. If user selectes camera it shows camera to capture image, for video/camcorder it show camera to capture video and for File it shows the file explorer.
Testing
Tested on real android devices from Android version 9 to 14
Checklist
(platform)
if this change only applies to one platform (e.g.(android)
)