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:

https://docs.nextcloud.com/server/latest/developer_manual/client_apis/WebDAV/index.html

https://docs.nextcloud.com/server/latest/user_manual/en/files/access_webdav.html#accessing-files-using-curl