fix: upload: skipped files were not reporting the reason
Massimo Melina committed
May 23, 2025 at 15:25 UTC
26bc27e5d7b8f71c09ddbaf7702e564b8dc70070
1 file changed
+3
-1
frontend/src/uploadQueue.ts
+3
-1
@@ -121,8 +121,10 @@ export async function startUpload(toUpload: ToUpload, to: string, startingResume
121
stopLooping = true
122
return
123
}
124
- if (userAborted || status === HTTP_CONFLICT) // HTTP_CONFLICT = skipped because existing
124
+ if (userAborted || status === HTTP_CONFLICT) { // HTTP_CONFLICT = skipped because existing, or upload in progress
125
+ toUpload.error = status ? t('upload_conflict', "already exists") : t`Interrupted` // the I is uppercase because we are just recycling an old string (with all its translations)
126
uploadState.skipped.push(toUpload)
127
+ }
128
else if (status >= 400)
129
error(status)
130
else if (!status) // request failed at a network level, so try again same file (return), but not too often (wait)