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

fix(android): Avoid crash on input file #4707

Merged
merged 1 commit into from
Jun 9, 2021
Merged

Conversation

jcesarmobile
Copy link
Member

if you have an input file like <input type="file" accept=".png,.jpg">, android creates an intent with .png type, which is not a proper value and causes an activity not found which leads to a crash.

This PR checks the type and replaces it with the proper mime.

@jcesarmobile jcesarmobile requested a review from thomasvidas June 9, 2021 11:51
@jcesarmobile jcesarmobile merged commit 883c0fe into main Jun 9, 2021
@jcesarmobile jcesarmobile deleted the fix-input-crash branch June 9, 2021 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants