From 541a1cec4bbe29c60ee919a85ac9dd85fe7db65b Mon Sep 17 00:00:00 2001 From: Abhinav Date: Wed, 18 May 2022 12:57:54 +0530 Subject: [PATCH] add upload section for thumbnail generation failed files --- src/components/pages/gallery/UploadProgress.tsx | 12 ++++++++++++ src/utils/strings/englishConstants.tsx | 3 +++ 2 files changed, 15 insertions(+) diff --git a/src/components/pages/gallery/UploadProgress.tsx b/src/components/pages/gallery/UploadProgress.tsx index b4445bbf6..806608b6b 100644 --- a/src/components/pages/gallery/UploadProgress.tsx +++ b/src/components/pages/gallery/UploadProgress.tsx @@ -328,6 +328,18 @@ export default function UploadProgress(props: Props) { sectionTitle={constants.UNSUPPORTED_FILES} sectionInfo={constants.UNSUPPORTED_INFO} /> + + {props.uploadStage === UPLOAD_STAGES.FINISH && ( diff --git a/src/utils/strings/englishConstants.tsx b/src/utils/strings/englishConstants.tsx index 864947dc7..4e9532484 100644 --- a/src/utils/strings/englishConstants.tsx +++ b/src/utils/strings/englishConstants.tsx @@ -557,6 +557,7 @@ const englishConstants = { RETRY_FAILED: 'retry failed uploads', FAILED_UPLOADS: 'failed uploads ', SKIPPED_FILES: 'ignored uploads', + THUMBNAIL_GENERATION_FAILED_UPLOADS: 'thumbnail generation failed', UNSUPPORTED_FILES: 'unsupported files', SUCCESSFUL_UPLOADS: 'successful uploads', SKIPPED_INFO: @@ -570,6 +571,8 @@ const englishConstants = { 'these files were not uploaded as they exceed the maximum size limit for your storage plan', TOO_LARGE_INFO: 'these files were not uploaded as they exceed our maximum file size limit', + THUMBNAIL_GENERATION_FAILED_INFO: + 'Your video was uploaded, but unfortunately we could not generate the thumbnail and metadata for the file. You can re-upload the file using the ente website or our mobile apps if you wish to fix the thumbnail and the metadata', UPLOAD_TO_COLLECTION: 'upload to album', ARCHIVE: 'archive', ALL: 'all',