New photos on the iPhone should be automatically and correctly be uploaded if autoupload is configured.
Sometimes autouploaded photos are broken in media preview, the also do not work in the nextcloud browser and are broken on PC's where they sync to.
IMG_1456 and IMG_1457 are both taken within a few seconds. The iPhone was all the time in the home WiFi. They have been auto-uploaded, and the result in the nextcloud view in the browser shows IMG_1456 with 0 bytes:

The same view in the Nextcloud app on the iPhone shows the pic with 1.9MB, but also broken:

After deleting the file and manually uploading the picture from the iPhone to Nextcloud it works and shows a real size of 2.4MB:

Just having autoupload enabled. Some photos break with the described behavior. I saw if the first time in the 3.0.6 testflight branch. App is set to convert the photos to JPG.
Photos should always be correctly uploaded. If the upload does not work or does not complete it must be repeated and not leave a broken (partial?) file on the server ... and it may not tag the picture as uploaded in the database of the nextcloud app in the iPhone which prevents the picture from being uploaded again.
13.6
3.0.6.6
Operating system:
Ubuntu 18.04 LTS
Web server:
Apache
Database:
MariaDB
PHP version:
7.3 (FPM)
Nextcloud version: (see Nextcloud admin page)
19.0.1
This is probably related to https://github.com/nextcloud/server/issues/7995. If files get uploaded with a client which uses chunked transfers, Nextcloud will sometimes not store the file correctly. This happens with all clients I've tried so far. If you are handling sensitive or important data with your nextcloud, I'd suggest you to take frequent backups (these corruptions can happen on file modifications, too) and create a cronjob which periodicly checks for corrupted files.
@Subito Nextcloud iOS do not use the chunked ... but maybe, @jacotec you use also Android ?
I saw the same bug appear when I tried to upload 20k of pictures with the iOS client to my nextcloud instance. It corrupted about 10% of the pictures. Some additional reporting is here: https://github.com/nextcloud/server/issues/3056. Are you sure th iOS App does not use the Transfer-Encoding: chunked Header with PUT Requests? Because that was my only explanation on why my photos got corrupted - because it fit the description in the bugs mentioned above. https://github.com/nextcloud/ios/issues/1395 Seems to be the same problem?
@Subito Nextcloud iOS do not use the chunked ... but maybe, @jacotec you use also Android ?
Nope, only iDevices here 🙂
I have the same problem. Constantly. 5 out of 9 pictures are broken. Thats a joke... data corruption is a no no.
Found two today as well.
Interesting: In the file view of the autouploading device itself, the files do have some size (1.x MB) shown. On all other devices and the web interface these files are shown with 0 Bytes.
Try with the last 3.0.7 build 3 in TestFlight
Just updated a minute ago ...
thanks for the quick response. I have just installed Testflight, and it looks good so far 👍
you have to look at the logs otherwise find the issue is impossible 👌🏻
Ah sorry, already deleted the regular app. I had a look a couple of days, but couldnt find anything suspicious. If it happens again, I will post the log here.
In the version 3.0.7 (build 4) I have added the size in log as this example:
[LOG] Upload complete https://nextcloud.xxxxxxxxx.org/remote.php/webdav/0/20-09-02 10-54-07 0015.jpg of size: 91107
For me its only reproducable on a low-latency Connection. Unfortunatly I don't have access to one right now but I will test the TestFlight Version once I have.
Nextcloud TestFlight
I have find a possible issue please test with the last 3.0.7 (build 6)
I close, reopen if happen yet
Most helpful comment
This is probably related to https://github.com/nextcloud/server/issues/7995. If files get uploaded with a client which uses chunked transfers, Nextcloud will sometimes not store the file correctly. This happens with all clients I've tried so far. If you are handling sensitive or important data with your nextcloud, I'd suggest you to take frequent backups (these corruptions can happen on file modifications, too) and create a cronjob which periodicly checks for corrupted files.