add upload section for thumbnail generation failed files

This commit is contained in:
Abhinav 2022-05-18 12:57:54 +05:30
parent f67e5e67d0
commit 541a1cec4b
2 changed files with 15 additions and 0 deletions

View file

@ -328,6 +328,18 @@ export default function UploadProgress(props: Props) {
sectionTitle={constants.UNSUPPORTED_FILES}
sectionInfo={constants.UNSUPPORTED_INFO}
/>
<ResultSection
filenames={props.filenames}
fileUploadResultMap={fileUploadResultMap}
fileUploadResult={
FileUploadResults.UPLOADED_WITH_BLACK_THUMBNAIL
}
sectionTitle={
constants.THUMBNAIL_GENERATION_FAILED_UPLOADS
}
sectionInfo={constants.TOO_LARGE_INFO}
/>
</Modal.Body>
{props.uploadStage === UPLOAD_STAGES.FINISH && (
<Modal.Footer style={{ border: 'none' }}>

View file

@ -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',