From 2926bfca728ac3c946aa90a1f89bb66b1f7fdb9a Mon Sep 17 00:00:00 2001 From: Ivan Ivanov Date: Thu, 16 Mar 2023 09:46:31 +0200 Subject: [PATCH] Set a fixed multipart boundary in attempt to fix multipart payloads --- qfieldsync/core/cloud_api.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qfieldsync/core/cloud_api.py b/qfieldsync/core/cloud_api.py index 70c5a1e3..d5dc28db 100644 --- a/qfieldsync/core/cloud_api.py +++ b/qfieldsync/core/cloud_api.py @@ -568,6 +568,9 @@ def cloud_upload_files( multi_part = QHttpMultiPart(QHttpMultiPart.FormDataType) multi_part.setParent(self) + multi_part.setBoundary( + b"boundary_.oOo.QFieldRoxAndYouKnowItDXMtCoIPQV84CAX3rDyv83393" + ) # most of the time there is no other payload if payload is not None: