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

NextCloud IOS app is acting dumb - it is reuploading previously uploaded files, when I renable auto uplaod #3282

Open
surapuramakhil opened this issue Jan 26, 2025 · 4 comments

Comments

@surapuramakhil
Copy link

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

pre-req:
NextCloud Server + account

Steps to reproduce

  1. enable auto upload
  2. upload the whole camera roll
  3. wait for few uploads
  4. pause the upload by toggling upload the whole camera roll
  5. enable again

Expected behaviour

Tell us what should happen

It should resume upload

Actual behaviour

Tell us what happens instead, if possible, also add a screenshot

its reuploading previously uploaded photos, causing duplicates in the server

Logs

If applicable, you can post the iOS app or server logs (removing any sensitive information).

Reasoning or why should it be changed/implemented?

Environment data

iOS version: e.g. iOS 17.6.1

Nextcloud iOS app version: see More > Settings

Server operating system:

Web server: Apache, nginx

Database:

PHP version:

Nextcloud version: see Nextcloud admin page

@AinzLimuru
Copy link

I have reported this problem #3271 , but I have not received any reply. I have provided logs and screenshots as much as possible, but I have not received any reply.
The problem I encountered may be more serious. Repeated uploads not only occur when content has already been uploaded, but there are even preparations for uploading a file multiple times in the waiting list. This is really unacceptable.

@marinofaggiana
Copy link
Member

Hi, @surapuramakhil thanks for your report.

I have often analyzed this problem and it is not easy to solve it, writing the files already uploaded in the database is useless since maybe a user reinstalls the app, it would be necessary to make sure that before sending each image it is already on the server but this would slow down the process ...

@mpivchev what's do you think ?

@AinzLimuru
Copy link

AinzLimuru commented Feb 25, 2025

Hi, @surapuramakhil thanks for your report.

I have often analyzed this problem and it is not easy to solve it, writing the files already uploaded in the database is useless since maybe a user reinstalls the app, it would be necessary to make sure that before sending each image it is already on the server but this would slow down the process ...

@mpivchev what's do you think ?

Hello, have you successfully reproduced the problem that appeared in the issue you just closed?
Duplication doesn't just happen with content that's already been uploaded. For content that has not yet been uploaded, it has already begun to be repeated in the upload queue. This part does not involve the issue of cloud consistency.
If you're having trouble reproducing the issue, I'd like to know if there's a way I can provide a more detailed log. I don't think the logs provided previously contain any useful information.

@surapuramakhil
Copy link
Author

it would be necessary to make sure that before sending each image it is already on the server but this would slow down the process

@marinofaggiana Nah, use file hashes for checking, for bulk upload - check also needs to bulk file hashes checks. At backed its should be hash lookup. O(1) operation - lot of key value stores / caches does this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants