From 4a59f246f2cbf68788f70465bb6b59797a4c6406 Mon Sep 17 00:00:00 2001 From: tickstep Date: Sun, 10 Nov 2024 13:31:35 +0800 Subject: [PATCH] show error for user that file is too big to upload #469 #460 --- internal/functions/panupload/upload_task_unit.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/functions/panupload/upload_task_unit.go b/internal/functions/panupload/upload_task_unit.go index 6482634..bcc67e4 100644 --- a/internal/functions/panupload/upload_task_unit.go +++ b/internal/functions/panupload/upload_task_unit.go @@ -539,6 +539,8 @@ StepUploadPrepareUpload: logger.Verboseln("create upload file error: " + result.ResultMessage) // 重试 result.NeedRetry = true + } else if apierr.Code == apierror.ApiCodeUploadPayloadTooLarge { + fmt.Printf("[%s] %s 上传文件的大小超出限制,你可能需要开通阿里云盘三方权益包以便上传大文件\n", utu.taskInfo.Id(), time.Now().Format("2006-01-02 15:04:06")) } return }