Replies: 1 comment
-
|
@NicCas00 I have tested this locally and it works. I get empty Microsoft.Maui.Storage.FileResult[]. Latest MAUI 9.0.110 SR11. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone!
I'm working on a .NET MAUI app and I'm running into an issue on iOS when selecting photos from the gallery.
I'm using FilePicker.Default.PickMultipleAsync() to let users select multiple photos and it works fine as long as the user picks some photos.
But here’s the problem:
If the user cancels the picker (either by swiping down or tapping "Cancel"), the method never returns, and the rest of the code after the call is never executed.
It feels like the app is waiting forever for the picker to signal that it has closed, but that signal never comes back.
I expected that if the user cancels, results would be null or empty, and the code would continue normally.
But instead, nothing happens — not even a breakpoint after PickMultipleAsync is hit.
This only happens on iOS (tested on an iPhone).
Has anyone else faced this? Any workaround or known fix?
Thanks in advance!

Beta Was this translation helpful? Give feedback.
All reactions