Private
Public Access
1
0

bugfixes, better handling of server url changes

This commit is contained in:
2025-06-13 17:11:29 -07:00
parent dece6f1abc
commit 45d873907f
5 changed files with 58 additions and 4 deletions

View File

@@ -24,4 +24,5 @@ tokio = { version = "1.37.0", features = ["full"] }
tokio-tungstenite = "0.26.2"
tokio-util = { version = "0.7.15", features = ["futures-util"] }
tungstenite = "0.26.2"
urlencoding = "2.1.3"
uuid = { version = "1.6.1", features = ["v4", "fast-rng", "macro-diagnostics"] }

View File

@@ -346,7 +346,8 @@ impl<K: AuthenticationStore + Send + Sync> APIInterface for HTTPAPIClient<K> {
.await
.map_err(|e| Error::ClientError(e.to_string()))?;
let endpoint = format!("uploadAttachment?filename={}", filename);
let encoded_filename = urlencoding::encode(filename);
let endpoint = format!("uploadAttachment?filename={}", encoded_filename);
let mut bytes_opt = Some(bytes);
let response: UploadAttachmentResponse = self