diff --git a/static/app-strings.json b/static/app-strings.json index 1121948d2..7ee16ff5f 100644 --- a/static/app-strings.json +++ b/static/app-strings.json @@ -1147,6 +1147,13 @@ "Stopped. Duplicate session detected.": "Stopped. Duplicate session detected.", "File being uploaded in another tab or window.": "File being uploaded in another tab or window.", "There are pending uploads.": "There are pending uploads.", + "Processing file. Please wait...": "Processing file. Please wait...", + "File uploaded to server.": "File uploaded to server.", + "Remove entry?": "Remove entry?", + "The file was successfully uploaded, but we could not retrieve the confirmation status.": "The file was successfully uploaded, but we could not retrieve the confirmation status.", + "Wait 5-10 minutes, then refresh and check the Uploads list and Wallet transactions before attempting to re-upload.": "Wait 5-10 minutes, then refresh and check the Uploads list and Wallet transactions before attempting to re-upload.", + "This entry can be safely removed if the transaction is visible in those pages.": "This entry can be safely removed if the transaction is visible in those pages.", + "Press OK to clear this entry from the \"Currently Uploading\" list.": "Press OK to clear this entry from the \"Currently Uploading\" list.", "Use a URL": "Use a URL", "Edit Cover Image": "Edit Cover Image", "Cover Image": "Cover Image", diff --git a/ui/component/webUploadList/internal/web-upload-item.jsx b/ui/component/webUploadList/internal/web-upload-item.jsx index 10d930f85..b230e8e77 100644 --- a/ui/component/webUploadList/internal/web-upload-item.jsx +++ b/ui/component/webUploadList/internal/web-upload-item.jsx @@ -75,7 +75,11 @@ export default function WebUploadItem(props: Props) { } if (!uploader) { - return __('Stopped.'); + if (status === 'notify') { + return __('File uploaded to server.'); + } else { + return __('Stopped.'); + } } if (resumable) { @@ -87,6 +91,8 @@ export default function WebUploadItem(props: Props) { return __('Failed.'); case 'conflict': return __('Stopped. Duplicate session detected.'); + case 'notify': + return __('Processing file. Please wait...'); default: return status; } @@ -108,7 +114,14 @@ export default function WebUploadItem(props: Props) { // Should still be uploading. Don't show. return null; } else { - // Refreshed or connection broken. + // Refreshed or connection broken ... + + if (status === 'notify') { + // ... but 'notify' sent, so we have to assume it is processed. + // Can't do much until the polling API is available. + return null; + } + const isFileActive = file instanceof File; return (