Skip to content

Commit

Permalink
Merge pull request #217 from jamebal/develop
Browse files Browse the repository at this point in the history
fix: 修复上传脚本直接上传小文件失败的问题
  • Loading branch information
jamebal authored Jan 4, 2025
2 parents 814bc80 + 045fd1e commit 6dc89dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ else

if [ $TOTAL_SIZE -le $CHUNK_SIZE ]; then
# 小文件直接上传
TOTAL_CHUNKS=1
upload_chunk "$FILE_PATH" 1 "$TOTAL_SIZE" > /dev/null
if [ $? -ne 0 ]; then
echo "文件上传失败"
Expand Down

0 comments on commit 6dc89dc

Please sign in to comment.