Android: impossible to upload a file 2 times

Created on 13 Mar 2017  路  11Comments  路  Source: nextcloud/android

Actual behaviour

Example: I fixed 50 mb limit for an account. Trying from android app to load a file of 26 mb, deleting, purging trash and re-uploading is impossible (upload failed error from app when I try to upload the second time).

Trying with other files of 1-2 mb will make it work.

Expected behaviour

Upload ok if the quota is not reached.

Steps to reproduce

  1. upload a file of at least half the space set by quota
  2. delete the file and purge the trash from web app
  3. upload the same file

It's not important if the directory where the file is uploaded the second time is the same of the first time. It will not work in any way.

Environment data

Android version: 6.0.1

Device model: oneplus one A0001

Stock or customized system: stock cyanogenmod 13

Nextcloud app version: latest

Nextcloud server version: latest stable

Logs

Web server error log

Insert your webserver log here

no errors there

Nextcloud log (data/nextcloud.log)

Insert your Nextcloud log here

no infos there

HOW I TEMPORARY SOLVED THE ISSUE


the only way I found was purging cache and data of the app.

bug

Most helpful comment

@AndyScherzinger this should already be fixed in beta.

All 11 comments

Trying with a different app (oCloud), everything works ok. I'm pretty sure the problem is in nextcloud app.

@paolomeraviglia did you try it right away with two uploads or did some time go by inbetween, because then it could also be a server-side issue?

i tried file by file doing:

  • upload -> ok
  • wait -> ok
  • trash -> ok
  • delete via web gui from trash -> ok
  • reupload -> failed

With oCloud app (not owncloud) all the things are running ok. If needed, please describe me a complete test to do and I'll do it now

@paolomeraviglia thanks for the detailed description and feedback. The test steps seem detailed enough!

@mario @tobiasKaminsky I labeled it 1.5.0 since this seems to be a small issue to fix and 1.4.2 is frozen already.

ok, thanks for your great work: I'm testing now if the same problem appear in the beta release

@AndyScherzinger this should already be fixed in beta.

That would be awesome! Which PR fixes this one?

CONFIRMED, the beta version is working right! Awesome!

@AndyScherzinger one on the library by @tobiasKaminsky.

@paolomeraviglia thanks for the confirmation.

Sweet! Yeah I guess I then has been the chunking re-upload fix :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ThaDaVos picture ThaDaVos  路  3Comments

Bugsbane picture Bugsbane  路  3Comments

tobiasKaminsky picture tobiasKaminsky  路  3Comments

Shagequi picture Shagequi  路  3Comments

markbryanduncan picture markbryanduncan  路  3Comments