mirror of
https://github.com/immich-app/immich.git
synced 2025-06-22 06:50:54 -04:00
* Improved asset upload algorithm. - Upload Queue: New process algorithm - Upload Queue: Concurrency correctly respected when dragging / adding multiple group of files to the queue - Upload Task: Add more information about progress (upload speed and remaining time) - Upload Panel: Add more information to about the queue status (Remaining, Errors, Duplicated, Uploaded) - Error recovery: asset information are kept in the queue to give the user a chance to read the error message - Error recovery: on error allow the user to retry the upload or hide the error / all errors * Support "live" editing of the upload concurrency * Fixed some issues * Reformat * fix: merge, linting, dark mode, upload to share --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
21 lines
300 B
TypeScript
21 lines
300 B
TypeScript
export enum UploadState {
|
|
PENDING,
|
|
STARTED,
|
|
DONE,
|
|
ERROR,
|
|
DUPLICATED,
|
|
}
|
|
|
|
export type UploadAsset = {
|
|
id: string;
|
|
file: File;
|
|
albumId?: string;
|
|
progress?: number;
|
|
state?: UploadState;
|
|
startDate?: number;
|
|
eta?: number;
|
|
speed?: number;
|
|
error?: unknown;
|
|
message?: string;
|
|
};
|