dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.89k stars 1.69k forks source link

Essentials - MediaPicker add method to select multiple images #6903

Open janseris opened 2 years ago

janseris commented 2 years ago

Description

Currently for images/photos, there is MediaPicker class with PickPhotoAsync and CapturePhotoAsync methods available. PickPhotoAsync only selects 1 image at a time from gallery. However, for FilePicker, there is PickMultipleAsyncmethod available.

It should be possible to select multiple images, too.

Temporary workaround:

Public API Changes

MediaPicker class: add PickMultiplePhotosAsync or similar method

Intended Use-Case

pick multiple images from gallery

AbstractionsAs commented 1 year ago

Is there any ETA on this?

janseris commented 1 year ago

@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.

johanlangevillecab commented 1 year ago

It would also be nice to have a CapturePhotosAsync to take multiple photos without closing the camera

ctigrisht commented 1 year ago

I fully support this, it should have been a basic feature

nathanjeynes commented 1 year ago

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.

antiGithub commented 1 year ago

I would also need this feature very badly

ghost commented 1 year ago

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.

nc-kano commented 11 months ago

Currently we can only select images OR videos so also option for images AND videos would be nice.

harima34 commented 8 months ago

Any news ? There is no way for filepicker to access album photo ? (at least for ios) Or a way for CrossMedia can select multiple file ? It would be nice

Brosten commented 7 months ago

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.

shingming commented 7 months ago

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) In current situation, I think MediaGallery is the good solution.

image

Simo4565 commented 7 months ago

I would also need this feature

mnidhk commented 3 months ago

is there a workaround or still no option to pick multiple images?

shingming commented 3 months ago

@mnidhk

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

Odaronil commented 3 months ago

I need this too! Microsoft pay attention!

johannes-steurer commented 3 months ago

yes, definitly needed

samanson123 commented 3 months ago

Would be a very useful built in option. I'm having to use Xamarin.MediaGallery as a workaround same as many others.

hernandoz commented 2 months ago

This is an essential functionality for most enterprise apps, this should be a priority for the MAUI Team .

SteHiggins commented 2 months ago

We really need this. Is there an ETA?

janseris commented 2 months ago

We really need this. Is there an ETA?

MAUI's development is ~dead Realistic perspective from a person who has been following it for 2 years (since 4 months before its release) and judging by what and how many issues have been or are being fixed and what embarrassing issues which we did not think were possible in a production UI framework our developers and me have been encountering and still are encountering). Fixes or new features which are released are negligible and take years even if they are important because there are few developers included and this has not changed much in these 2 years.

mackayn commented 2 months ago

Xamarin media gallery can be ported to .NET8 for now, just done this for a project to get multi-photos select unblocked.

https://github.com/dimonovdd/Xamarin.MediaGallery

waldevelop commented 2 weeks ago

Hi Mackayn how di you convert it to .NET 8? In Visual Studio I don't find this option and It's not possible to build it for Net 6

samanson123 commented 2 weeks ago

Hi Mackayn how di you convert it to .NET 8? In Visual Studio I don't find this option and It's not possible to build it for Net 6

Downloaded the latest version of the Nuget package in your .NET 8 project.

mackayn commented 2 weeks ago

Hi Mackayn how di you convert it to .NET 8? In Visual Studio I don't find this option and It's not possible to build it for Net 6

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.

mackayn commented 2 weeks ago

We really need this. Is there an ETA?

MAUI's development is ~dead Realistic perspective from a person who has been following it for 2 years (since 4 months before its release) and judging by what and how many issues have been or are being fixed and what embarrassing issues which we did not think were possible in a production UI framework our developers and me have been encountering and still are encountering). Fixes or new features which are released are negligible and take years even if they are important because there are few developers included and this has not changed much in these 2 years.

It has it's challenges but just finished porting a large enterprise SAAS app to MAUI successfully.

mackayn commented 2 weeks ago

Hi Mackayn how di you convert it to .NET 8? In Visual Studio I don't find this option and It's not possible to build it for Net 6

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.