From cf72bc68271a7952940bc07b24b5b9f3b73250ae Mon Sep 17 00:00:00 2001 From: haosicheng Date: Tue, 21 Oct 2025 16:19:17 +0800 Subject: [PATCH] =?UTF-8?q?[patch]=20=E7=A6=81=E7=94=A8ks3=E4=BB=A3?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/scripts/upload_installer_to_ks3.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.gitea/scripts/upload_installer_to_ks3.py b/.gitea/scripts/upload_installer_to_ks3.py index ba343ce..b6c6b12 100644 --- a/.gitea/scripts/upload_installer_to_ks3.py +++ b/.gitea/scripts/upload_installer_to_ks3.py @@ -110,7 +110,6 @@ def upload_installer(connection, installer_path): # Upload file with public read permission and progress tracking # Use cb parameter for progress callback (called every 5% or every 10MB) - # 🔥 启用分片上传提高大文件上传成功率 key.set_contents_from_filename( str(installer_path), headers={ @@ -122,9 +121,7 @@ def upload_installer(connection, installer_path): }, policy='public-read', # Set ACL policy cb=progress_callback, # Progress callback function - num_cb=10, # Call callback 10 times during upload (every 10%) - multipart=True, # 🔥 启用分片上传 - chunk_size=10485760 # 🔥 10MB每片,提高上传稳定性 + num_cb=10 # Call callback 10 times during upload (every 10%) ) # Generate download URL (using KS3 third-level domain format) @@ -157,7 +154,6 @@ def main(): logger.info(f"Bucket: {KS3_BUCKET}") logger.info(f"Target directory: {KS3_PREFIX}") logger.info("Proxy disabled: Direct connection to KS3") - logger.info("Multipart upload: Enabled (10MB chunks)") logger.info("=" * 70) installer_path = find_latest_installer()