-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Cancelling an upload does not really cancel it #5346
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
Comments
For me, the cancel button is working correctly only for the ongoing upload. For the upcoming contributions, this does not work, which means only the first contribution in the apps-android-commons/app/src/main/java/fr/free/nrw/commons/contributions/ContributionViewHolder.java Lines 240 to 243 in 64652b9
|
I suspect if this line adds the contribution again to the database using the insert operation: apps-android-commons/app/src/main/java/fr/free/nrw/commons/upload/worker/UploadWorker.kt Line 219 in 64652b9
|
Thanks Ritika, great insight! :-) |
May I take this up? Since this issue is very similar to my GSoC task (#5136), I was curious to explore and find some more solutions. The cause is exactly the same:
|
@RitikaPahwa4444 Please do not feel obligated to, but if you want to take it then of course you are more than welcome! :-) |
Scenario: You upload 5 pictures of a monument, but while it is uploading you suddenly realize that two of the pictures are privacy violations (for instance they are private family pictures). You want to cancel these two uploads, so for each of them you tap the pause button then the "X" delete button.
Problem: These two pictures actually get uploaded as well.
This is probably a rather difficult issue, as you will need to read the code and understand how the app retries failed uploads.
The text was updated successfully, but these errors were encountered: