Skip to content

Conversation

onehumandev
Copy link

@onehumandev onehumandev commented Oct 13, 2025

For iOS and Android, there are 2 distinct file picker dialogs, one for picking media and one for picking documents.

Previously, the filters provided by the user when calling the open method would determine which picker would be displayed.

However, this has led to undefined behavior when no filter was provided.

To resolve this, we now provide a PickerMode (meant for iOS and eventually Android) to explicitly define which picker we want to display.

Eventually, we may need to provide more explicit ways of filtering by MIME type or having specific modes for ImagePicker or VideoPicker for ease of use on mobile platforms.

But for now, this is an initial implementation that allows specifying which UI would be preferable for a file picker on mobile platforms.

Related bug #3030

@onehumandev onehumandev requested a review from a team as a code owner October 13, 2025 22:24
Copy link
Contributor

Package Changes Through 27c84df

There are 12 changes which include deep-link with patch, deep-link-js with patch, dialog with minor, dialog-js with minor, fs with patch, fs-js with patch, geolocation with patch, geolocation-js with patch, opener with patch, opener-js with patch, updater with minor, updater-js with minor

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
api-example 2.0.36 2.0.37
api-example-js 2.0.32 2.0.33
deep-link-example-js 2.2.6 2.2.7
deep-link 2.4.3 2.4.4
deep-link-js 2.4.3 2.4.4
fs 2.4.2 2.4.3
fs-js 2.4.2 2.4.3
dialog 2.4.0 2.5.0
dialog-js 2.4.0 2.5.0
geolocation 2.3.0 2.3.1
geolocation-js 2.3.0 2.3.1
opener 2.5.0 2.5.1
opener-js 2.5.0 2.5.1
http 2.5.2 2.5.3
http-js 2.5.2 2.5.3
persisted-scope 2.3.2 2.3.3
single-instance 2.3.4 2.3.5
updater 2.9.0 2.10.0
updater-js 2.9.0 2.10.0

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@onehumandev onehumandev force-pushed the aldewaal/picker-mode branch 3 times, most recently from d8f48b8 to b1b6214 Compare October 14, 2025 18:24
For iOS and Android, there are 2 distinct file picker dialogs, one for
picking media and one for picking documents.

Previously, the filters provided by the user would determing which
picker would be displayed.

However, this has led to undefined behavior when no filter was provided.

To resolve this, we now provide a PickerMode (meant for iOS and
eventually Android) to explicitly define which picker we want to
display.

Eventually, we may need to provide more explicit ways of filtering by
MIME type or having specific modes for ImagePicker or VideoPicker for
ease of use on mobile platforms.

But for now, this is an initial implementation that allows specifying
which UI would be preferable for a file picker on mobile platforms.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants