Files become zero bytes

You probably just need to change the modification date of the files, then they are considered to be newer and will be synced.

We added this in the Nextcloud VM to easily check:

1 Like

There seems to be a few ways to get zero byte files. The sabre.io site (who codes WebDAV/CalDAV/CardDAV) have some insights: 0 byte files - sabre/dav

  1. webserver and/or PHP module incompatibility can cause it.
  2. It seems that the WebDAV protocol itself can open up for creating zero byte files, that it is left for the implements to keep track of.

which ever, custom cleanup and retry code is probably needed - and it does not seem to be there :wink:

BTW. Got the issue too. Android Client using Total Commander, against nextcloud server v23 (the nextcloud VM). transfere +50GB and some files will show up zero (10-20 of 4-5000 in all).