-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Essentials - MediaPicker add method to select multiple images #6903
Comments
Is there any ETA on this? |
@AbstractionsAs This is not an answer to your question but I suggest you add like reaction to the post to push it upwards in priority. A lot of .NET GitHub works like this. |
It would also be nice to have a CapturePhotosAsync to take multiple photos without closing the camera |
I fully support this, it should have been a basic feature |
This is needed and was available in the Xamarin forms essentials, not sure why this has been left out but its a key feature that many apps rely on. |
I would also need this feature very badly |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
Currently we can only select images OR videos so also option for images AND videos would be nice. |
Any news ? |
The camera and photo selection parts really needs to be better in MAUI. I just learned that another team close to me picked another framework in favor of .net MAUI with the lack of good photo support as the major reason. Too bad MediaGallery (https://github.com/dimonovdd/Xamarin.MediaGallery) seems abandoned. Last commit 10 months ago. |
I agree the photo picker in MAUI is very needs to be enhanced. The MediaGallery you mentioned is not abandoned and is currently good to go in the MAUI project. (I use it in my MAUI pj, too) |
I would also need this feature |
is there a workaround or still no option to pick multiple images? |
Currently, I use this plugin in my .NET MAUI project to implement the multiple selection, and this works fine for me: https://github.com/dimonovdd/Xamarin.MediaGallery |
I need this too! Microsoft pay attention! |
yes, definitly needed |
Would be a very useful built in option. I'm having to use Xamarin.MediaGallery as a workaround same as many others. |
This is an essential functionality for most enterprise apps, this should be a priority for the MAUI Team . |
We really need this. Is there an ETA? |
MAUI's development is ~dead |
Xamarin media gallery can be ported to .NET8 for now, just done this for a project to get multi-photos select unblocked. |
Hi Mackayn |
Downloaded the latest version of the Nuget package in your .NET 8 project. |
That didn't work for me anyway, it wouldn't compile. I manually changed the framework references to .NET8 in the proj file, there's a LOT of compilers redirections to support portable & .NET8, we made some small tweaks for deprecated iOS calls but it's not a package as such, just a solution project, also had to stub a few interface implementations to allow it to compile .NET8 so the app could be unit tested but if you don't have to do that, you don't need to worry about it. |
It has it's challenges but just finished porting a large enterprise SAAS app to MAUI successfully. |
I manually changed the csroj files and compiler redirections in code to .NET8. You need to get your hands dirty under the hood. This package could be updated pretty easily to support .NET8. There's a few other things that might need tweaking. |
This should be the highest priority for MAUI iOS / Android development. |
This should be the highest priority for MAUI |
Agreed! It could be introduced into the UI flow as a third option of the dialog you get after taking a photo: |
Hi guys, using this one lib for picking media files MPowerKit.MediaPlugin. Works like a charm. https://github.com/MPowerKit/MediaPlugin |
I support this issue. The ability to select multiple images in one action would be very helpful. Using FilePicker.PickMultipleAsync as a workaround adds unnecessary complexity, especially when only images are needed. Adding a method like PickMultiplePhotosAsync in the MediaPicker class would simplify this process significantly. |
You can currently work around this by re-triggering the taking of a single photo until the user cancels: private async Task TakePhoto()
{
var photo = await MediaPicker.Default.CapturePhotoAsync();
if (photo != null)
{
await SavePhotoAsync(photo);
await Task.Delay(1000); // seems to be required for MediaPicker to open again
await TakePhoto(); // keep taking photos until user cancels
}
} |
@h0lg if i would do this workaround, i probably could be fired few times |
@Alex-Dobrynin I think we can agree on that this is a bit of a cheeky work around :) Yet it achieves something close to the desired behaviour with the current MediaPicker API. Send my regards to your boss. Pragmatism is not for everyone :) |
I need this too! |
I tried to install this plugin from NuGet https://github.com/MPowerKit/MediaPlugin but it can't be installed on Windows. I can see it inside the IOS and Android packages after the installation but not inside Windows so I can't reference it inside the MauiProgram.cs file. Did someone experience the same problem ? |
At the moment I'm using MediaGallery (https://github.com/dimonovdd/Xamarin.MediaGallery) but an official solution (with official support) will be better |
@waldevelop you need to enable long file pathes in windows. You can read more here MPowerKit/Lottie#1 |
thanks @Alex-Dobrynin I tried to follow the suggestions but the problem is still there. I'll try to see if a PC reboot could be the solution |
Description
Currently for images/photos, there is
MediaPicker
class withPickPhotoAsync
andCapturePhotoAsync
methods available.PickPhotoAsync
only selects 1 image at a time from gallery.However, for
FilePicker
, there isPickMultipleAsync
method available.It should be possible to select multiple images, too.
Temporary workaround:
FilePicker.PickMultipleAsync
with some image types restriction but that is unneccessary complexityPublic API Changes
MediaPicker
class: addPickMultiplePhotosAsync
or similar methodIntended Use-Case
pick multiple images from gallery
The text was updated successfully, but these errors were encountered: