|
@@ -941,7 +941,7 @@ export class Uppy<M extends Meta, B extends Body> {
|
|
|
bytesTotal: size,
|
|
|
uploadComplete: false,
|
|
|
uploadStarted: null,
|
|
|
- } as FileProgressNotStarted,
|
|
|
+ } satisfies FileProgressNotStarted,
|
|
|
size,
|
|
|
isGhost: false,
|
|
|
isRemote: file.isRemote || false,
|
|
@@ -1376,6 +1376,8 @@ export class Uppy<M extends Meta, B extends Body> {
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
calculateProgress = throttle(
|
|
|
(file, data) => {
|
|
|
const fileInState = this.getFile(file?.id)
|
|
@@ -1558,7 +1560,6 @@ export class Uppy<M extends Meta, B extends Body> {
|
|
|
file.id,
|
|
|
{
|
|
|
progress: {
|
|
|
- progress: 0,
|
|
|
uploadStarted: Date.now(),
|
|
|
uploadComplete: false,
|
|
|
percentage: 0,
|