summaryrefslogtreecommitdiff
path: root/lib/dolce/utils
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dolce/utils')
-rw-r--r--lib/dolce/utils/upload-with-progress.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/dolce/utils/upload-with-progress.ts b/lib/dolce/utils/upload-with-progress.ts
index 1204bf36..c86ed8a0 100644
--- a/lib/dolce/utils/upload-with-progress.ts
+++ b/lib/dolce/utils/upload-with-progress.ts
@@ -46,11 +46,12 @@ export async function uploadFilesWithProgress({
// 전체 업로드 진행도
// 주의: xhr.upload.progress는 클라이언트→서버 전송만 추적
- // 서버에서 DOLCE API로 재업로드하는 과정은 별도 (추적 불가)
+ // 서버에서 DOLCE API로 재업로드하는 과정은 별도 (Node.js fetch는 업로드 진행도 추적 미지원)
+ // → UI에서 90% 이상일 때 "서버에서 DOLCE API로 전송 중..." 메시지 표시
xhr.upload.addEventListener("progress", (event) => {
if (event.lengthComputable) {
- // 전송 완료 = 서버에 도착 (실제 처리 시작)
- // 서버 처리를 위해 최대 95%까지만 표시
+ // 전송 완료 = 서버에 도착 (실제 DOLCE API 업로드 시작)
+ // 서버 처리를 위해 최대 95%까지만 표시 (나머지 5%는 서버→DOLCE 업로드)
const totalProgress = Math.min((event.loaded / event.total) * 95, 95);
// 현재 업로드 중인 파일 인덱스 추정