Converting file to byte array and uploading to nextcloud

Hey ,
I have a 3rd party application that uses sardine liberry to upload files to nextcloud.
In the application I am parsing the file to byte array.

The upload fails and I get the error:
“Cannot retry request with a non-repeatable request entity”

Is there is somthing I need to configure in nextcloud in order to make it work ( running on docker with nginx (https) , cron , redis )

somthing is odd , i can upload and use rclone but for some reason sardine isn’t working.
and downloading from nextcloud (via webdav) with sardine is working propprly.
the issue is currently only for upload (PUT) command from sardine.

You can sanity check your NC’s WebDAV functionality using curl: