[Bug] Maui Blazor InputFile
See original GitHub issueThe Blazor InputFile component doesn’t seem to work in a Maui Blazor app (Android). I receive no errors, it just doesn’t do anything when clicked and never hits the breakpoint within the method called by OnChange.
<InputFile OnChange="ImageFileChange" accept="image/jpeg, image/png, image/gif, image/webp" multiple />
Issue Analytics
- State:
- Created 2 years ago
- Comments:17 (12 by maintainers)
Top Results From Across the Web
MAUI Blazor input bug on iOS : r/dotnet
Using MAUI-Blazor hybrid app, on iOS 15, input field doesn't accept input until you focus on another field then go back.
Read more >[Solved]-Problems with Blazor NET MAUI-blazor - appsloveworld.com
Coding example for the question Problems with Blazor NET MAUI-blazor. ... read property '_blazorFilesById' of null error" with Blazor InputFile component ...
Read more >James Montemagno
[Bug] Maui Blazor InputFile · Issue #2678 · dotnet/maui. The Blazor InputFile component doesn't seem to work in a Maui Blazor app (Android)....
Read more >Blazor Hyrid - Access Device Camera from InputFile
I'd use native access to the camera. You can communicate MAUI and the Blazor part through a object injected with DI. This way,...
Read more >ASP.NET Core Blazor file uploads
Learn how to upload files in Blazor with the InputFile component. ... When a file fails to upload on the server, an error...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks @jfversluis. I’ve verified this is working as expected without the storage permission, thus we should be good to go for Android 30+. 🎉
Optional PR: https://github.com/dotnet/maui/pull/5853/files
I don’t think you need to no. I actually don’t think it was ever required due to how we use proper intents and the picker. From my understanding. You also can’t really submit apps that target below 30 anymore.