Forum Xamarin.Android

Intent ActionGetContent with EXTRA_ALLOW_MULTIPLE option fails when only one file selected

Hi,
I'm trying to allow users to select multiple files for upload using Intent ActionGetContent with EXTRA_ALLOW_MULTIPLE option.
On OnActivityResult method I'm able to get intent clipdata and get file path of each selected file.

This works fine **except when only one file is selected. **In this case it shows Clipdata value to null.

How can I handle this case?

Posts

Sign In or Register to comment.