Skip to content
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

fix #1335: fix intent flag from ACTION_GET_CONTENT to ACTION_OPEN_DOCUMENT #1336

Closed
wants to merge 1 commit into from

Conversation

muttsu-623
Copy link

fix #1335: fix intent flag from ACTION_GET_CONTENT to ACTION_OPEN_DOCUMENT

@muttsu-623
Copy link
Author

@miguelpruivo
Hi @miguelpruivo , I hope you're doing well!
I've created a Pull Request and would love to hear your thoughts and suggestions 😄

@miguelpruivo
Copy link
Owner

Hi, what were the reason behind this change?

@julian-CStack
Copy link

Hi, what were the reason behind this change?

My guess would be the FilePickerResult returned from pickFiles() being null. At least this is what is happening in my case.

#1335 (comment)

@melWiss
Copy link

melWiss commented Oct 5, 2023

ping on this

1 similar comment
@daviresio
Copy link

ping on this

@muttsu-623
Copy link
Author

@miguelpruivo
Is there any problem?

@miguelpruivo
Copy link
Owner

I'm afraid to merge this change because I believe it could introduce breaking changes for a lot of users. I don't see a lot of traction on this issue, and if this was the case (for most) that would mean that a lot of devs would be pinging on this.

On the other hand, I'm not sure if changing to OPEN_DOCUMENT will introduce more issues than solve, because we are actually getting (GET_CONTENT) here to get the raw files, not opening. The OPEN_DOCUMENT is more intended to launch the file, rather than manipulating its data from what I understood.

@BitBlueDevStudio
Copy link

@miguelpruivo what about making this optional, to use Intent.ACTION_OPEN_DOCUMENT or Intent.ACTION_GET_CONTENT?

@dmitrio95
Copy link

This PR seems to introduce changes similar to #1380 so I'll mention it here too: it seems that this change breaks file picker on some older Android versions, at least on Android 9. #1380 (comment)

@miguelpruivo
Copy link
Owner

Dup of #1380.

@sneurlax
Copy link

sneurlax commented Jun 4, 2024

@miguelpruivo, this doesn't seem to be a duplicate of #1380: #1380 has more changes. Are they consequential?

We have had to use muttsu-623's flutter_file_picker for Android because of this issue, but muttsu-623's fork has Windows issues. So today I forked this and made cypherstack/flutter_file_picker which is your 8.0.3 + muttsu-623's single change: muttsu-623@f0930d9

This PR should be merged. Does it need changes?

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.

FileType.custom and FileType.custom doesn't work on Android 14
8 participants