From 936f8d53bd226121d58c8cb408b37e87ff28d49c Mon Sep 17 00:00:00 2001 From: ZzIsGod1019 <1498852723@qq.com> Date: Thu, 13 Jun 2024 17:07:16 +0800 Subject: [PATCH] os fix bug:invalid params key --- tardis/src/os/os_client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tardis/src/os/os_client.rs b/tardis/src/os/os_client.rs index a46bc8a..a7db57f 100644 --- a/tardis/src/os/os_client.rs +++ b/tardis/src/os/os_client.rs @@ -365,8 +365,8 @@ impl TardisOSOperations for TardisOSS3Client { let mut presign_url = vec![]; for part_no in 0..part_number { let mut custom_queries = HashMap::new(); - custom_queries.insert("upload_id".to_string(), upload_id.to_string()); - custom_queries.insert("part_number".to_string(), (part_no + 1).to_string()); + custom_queries.insert("uploadId".to_string(), upload_id.to_string()); + custom_queries.insert("partNumber".to_string(), (part_no + 1).to_string()); presign_url.push(self.get_bucket(bucket_name)?.presign_put(path, expire_sec, None, Some(custom_queries)).await?); } Ok(presign_url)