question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Maui Blazor InputFile

See original GitHub issue

The 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:closed
  • Created 2 years ago
  • Comments:17 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
TanayParikhcommented, Apr 5, 2022

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

1reaction
jamesmontemagnocommented, Feb 26, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found