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

stop download file #227

Closed
hatemragab opened this issue Sep 28, 2020 · 5 comments
Closed

stop download file #227

hatemragab opened this issue Sep 28, 2020 · 5 comments
Labels
type: enhancement New feature or request

Comments

@hatemragab
Copy link

how to stop downloading file

@renefloor
Copy link
Contributor

Not possible at the moment

@renefloor renefloor added the type: enhancement New feature or request label Sep 28, 2020
@hatemragab
Copy link
Author

ok is there any way to make downloading stop? because it downloads in the background I can't stop it if the screen dispose called

@renefloor
Copy link
Contributor

This is the place where the http stream is received and store on disk: https://github.com/Baseflow/flutter_cache_manager/blob/develop/flutter_cache_manager/lib/src/web/web_helper.dart#L166

We would implement a way to cancel this and delete the file that is already being saved.

I think we should add a method which checks if a url is being downloaded and add the url to some variable which is checked after each byte.

@hatemragab
Copy link
Author

just if file downloading kindly add a method to stop downloading the file stream thanks

@renefloor
Copy link
Contributor

Btw, I'm closing it as a duplicate of #208

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants