diff --git a/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/request/InitUploadBody.kt b/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/request/InitUploadBody.kt index e14ee030..a45868d0 100644 --- a/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/request/InitUploadBody.kt +++ b/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/request/InitUploadBody.kt @@ -51,6 +51,6 @@ class InitUploadBody( recaptcha = recaptcha, language = uploadSession.language.code, files = Json.encodeToString(uploadSession.files.mapToList(::UploadFileRequest)), - recipientsEmails = uploadSession.recipientsEmails.joinToString(prefix = "[", postfix = "]"), + recipientsEmails = Json.encodeToString(uploadSession.recipientsEmails), ) }