summaryrefslogtreecommitdiff
path: root/lib/dolce/utils/upload-with-progress.ts
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-11-24 18:38:08 +0900
committerjoonhoekim <26rote@gmail.com>2025-11-24 18:38:08 +0900
commit57e3a696f4bdee665cf592463acf48ba83a6e2cd (patch)
treee5888ffecd7043c50e429431ab594f4b2dd0a099 /lib/dolce/utils/upload-with-progress.ts
parente6c637e16550437ac0ecd58c79ce62a4fe397fb7 (diff)
(김준회) dolce rebuild: 파일 업로드 개선, b4 일괄업로드 문서명 파싱 문제 해결
Diffstat (limited to 'lib/dolce/utils/upload-with-progress.ts')
-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);
// 현재 업로드 중인 파일 인덱스 추정