Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Camera should allow for additional accept types for file selection #80

Open
baffioso opened this issue Apr 19, 2021 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@baffioso
Copy link

baffioso commented Apr 19, 2021

ionic/pwa-elements version:

I'm submitting a ... (check one with "x")
[ ] bug report
[x] feature request

Current behavior:
At the moment accept="image/*" is hard coded as accepted input types, when users choose to select a local file/file from disk.

Expected behavior:
Enable configuration of PWA camera for specifying accepted input types e.g. accept="image/png,image/jpeg"

Related code:

<input
type="file"
id="_pwa-elements-file-pick"
onChange={this.handleFileInputChange}
accept="image/*"
class="pick-image-button" />

Other information:
https://forum.ionicframework.com/t/restrict-file-types-in-pwa-camera-from-ionic-pwa-elements-when-selecting-local-image/208222

@baffioso baffioso changed the title Restrict allowed file types when selecting image from archive Restrict accepted file types when selecting image from archive Apr 19, 2021
@sean-perkins sean-perkins changed the title Restrict accepted file types when selecting image from archive feat: Camera should allow for additional accept types for file selection Jul 21, 2023
@sean-perkins sean-perkins added the enhancement New feature or request label Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants