OpenArchive / Save-app-ios

Secure Mobile Media Preservation
https://open-archive.org/
GNU General Public License v3.0
10 stars 3 forks source link

Upload mysteriously disappears if you navigate away from the app #200

Closed johnhess closed 2 years ago

johnhess commented 2 years ago

To replicate:

  1. Upload a file to an existing NextCloud project (this one was a >150MB video to sam.nl.tab.digital)
  2. Once the file appears in the project view, leave the application
  3. Reopen the application.

Expected: The file is either queued, uploading, uploaded, or failed (depending on network and time elapsed) Actual: The file does not appear in the project view nor the "uploads pane"

These screenshots taken in sequence: image image

iPhone 13 Max, 2.7.1 (59)

johnhess commented 2 years ago

This same file uploads just fine (at 273MB) when the app is in the foreground. If I wait for it to start uploading (i.e. the size uploaded is non-zero), it does not disappear.

tladesignz commented 2 years ago

Ok, so I added code which requests background time when importing videos, that already helps.

Additionally, I added code, which tries to restart asset import, if it stopped. That could have become unavailable at that time, but then the user will get an error feedback.

So everything should be much clearer now!

tladesignz commented 2 years ago

@purvi-ranawat, please test with next TestFlight! (will be build 60)

purvi-ranawat commented 2 years ago

@tladesignz @johnhess Not able to reproduce the issue on iPhone XR for app version 2.7.1 (61)