mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
feat(mobile) duplicated asset upload handling mechanism (#853)
This commit is contained in:
parent
f1af17bf4d
commit
6159c83fd2
32 changed files with 836 additions and 38 deletions
|
|
@ -200,12 +200,12 @@ async function fileUploader(asset: File, uploadType: UploadType) {
|
|||
}
|
||||
// TODO: This should have a proper type
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
function handleUploadError(asset: File, respBody?: any) {
|
||||
const extraMsg = respBody ? ' ' + respBody.message : '';
|
||||
function handleUploadError(asset: File, respBody: any, extraMessage?: string) {
|
||||
const extraMsg = respBody ? ' ' + respBody?.message : '';
|
||||
|
||||
notificationController.show({
|
||||
type: NotificationType.Error,
|
||||
message: `Cannot upload file ${asset.name}!${extraMsg}`,
|
||||
message: `Cannot upload file ${asset.name} ${extraMsg}${extraMessage}`,
|
||||
timeout: 5000
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue