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

Allow cancelling operation when FilePickerStatus is 'picking'. Useful when picking large cloud files #786

Open
vinith opened this issue Aug 2, 2021 · 13 comments
Labels
android Issue applies to Android platform feature-candidate This issue might result in a feature to be implemented improvement Improvement needed on a specific feature suggestion New feature or request

Comments

@vinith
Copy link

vinith commented Aug 2, 2021

There doesn't seem to be a way to cancel the operation when user picks large cloud files. It would be nice to have the ability to cancel the operation so user can pick files again.

Right now you get

I/flutter (24311): [MethodChannelFilePicker] Platform exception: PlatformException(already_active, File picker is already active, null, null)
when attempting to pick files when the operation is not cancelled and still active.

@vinith vinith added the suggestion New feature or request label Aug 2, 2021
@miguelpruivo
Copy link
Owner

Are you experiencing this on Android or iOS?

@vinith
Copy link
Author

vinith commented Aug 20, 2021

Android

@miguelpruivo
Copy link
Owner

Have you managed to fix it?

@vinith
Copy link
Author

vinith commented Oct 4, 2021

This isn't a priority for me. I am just building something for fun. It felt like an important feature to have so I suggested it.

@github-actions
Copy link

This issue is stale because it has been open for 14 days with no activity.

@github-actions github-actions bot added the stale label Nov 11, 2021
@aris-1
Copy link

aris-1 commented Nov 23, 2021

I also need a way to cancel/destroy/restart File picker.
I the user gets a large file from the cloud, it can take long. So I give him the option to cancel.
The problem is that if he tries to upload another file we get the exception already_active, until the previous file is downloaded from the cloud.
Is there a way to restart picker or cancel previous busy one?

@miguelpruivo miguelpruivo added the feature-candidate This issue might result in a feature to be implemented label Nov 23, 2021
@miguelpruivo
Copy link
Owner

@aris-1 currently there isn’t. But it could make sense to add.

@github-actions github-actions bot removed the stale label Nov 24, 2021
@Kashifalaliwala
Copy link

@miguelpruivo Is there any update on this issue?

@ItsYasser
Copy link

this feature should definitely be added , is there any updates on how to achieve canceling the operation ?

@riyan-dcosta
Copy link

I faced same issue. need to close existing instance. Cloud video was not downloaded and now I cannot re-download it. error : Unhandled Exception: PlatformException(already_active, File picker is already active, null, null)

@BrianMwas
Copy link

I am also facing the issue, hopefully it can be fixed

@Pluxury
Copy link

Pluxury commented Feb 8, 2024

I also ran into this problem. In addition, on android < 33, the picker does not open after requesting permissions to access the storage and calling FilePicker.platform.pickFiles() again leads to the mentioned error. The possibility of canceling the task could solve this problem.

@miguelpruivo miguelpruivo added android Issue applies to Android platform improvement Improvement needed on a specific feature labels Mar 20, 2024
@max-anders
Copy link

max-anders commented May 25, 2024

Same issue here. If user dismiss dialog (from which I have an open file picker button), he cannot pick files again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android Issue applies to Android platform feature-candidate This issue might result in a feature to be implemented improvement Improvement needed on a specific feature suggestion New feature or request
Projects
None yet
Development

No branches or pull requests

9 participants