UploadSnapshot
Defined in: libs/ccs-files-user-client/src/core/types.ts:909
Everything needed to continue an upload after a reload, except the bytes: the user picks the same file again
and size and last_modified must match. A client upload’s snapshot holds no signed URL (they are requested
again); a ticket upload’s snapshot holds the ticket as your backend handed it out, signed URLs included, because
nothing else can re-mint them: keep it with the user’s session data.
Properties
Section titled “Properties”v:
1
Defined in: libs/ccs-files-user-client/src/core/types.ts:910
mode:
"client"|"ticket"
Defined in: libs/ccs-files-user-client/src/core/types.ts:911
id:
string
Defined in: libs/ccs-files-user-client/src/core/types.ts:912
name:
string
Defined in: libs/ccs-files-user-client/src/core/types.ts:913
size:
number
Defined in: libs/ccs-files-user-client/src/core/types.ts:914
last_modified
Section titled “last_modified”last_modified:
number|null
Defined in: libs/ccs-files-user-client/src/core/types.ts:916
File.lastModified; null for a plain Blob.
mime_type
Section titled “mime_type”mime_type:
string
Defined in: libs/ccs-files-user-client/src/core/types.ts:917
target
Section titled “target”target:
UploadTarget|null
Defined in: libs/ccs-files-user-client/src/core/types.ts:919
client mode.
ticket
Section titled “ticket”ticket:
UploadTicket|null
Defined in: libs/ccs-files-user-client/src/core/types.ts:921
ticket mode.
upload_id
Section titled “upload_id”upload_id:
string|null
Defined in: libs/ccs-files-user-client/src/core/types.ts:922
file_id
Section titled “file_id”file_id:
string|null
Defined in: libs/ccs-files-user-client/src/core/types.ts:923
method
Section titled “method”method:
"put"|"multipart"|null
Defined in: libs/ccs-files-user-client/src/core/types.ts:924
part_size
Section titled “part_size”part_size:
number|null
Defined in: libs/ccs-files-user-client/src/core/types.ts:925
parts_total
Section titled “parts_total”parts_total:
number|null
Defined in: libs/ccs-files-user-client/src/core/types.ts:926
parts_done
Section titled “parts_done”parts_done:
UploadedPart[]
Defined in: libs/ccs-files-user-client/src/core/types.ts:928
The parts the store acknowledged, with their ETags.
expires_at
Section titled “expires_at”expires_at:
string|null
Defined in: libs/ccs-files-user-client/src/core/types.ts:929
created_at
Section titled “created_at”created_at:
string
Defined in: libs/ccs-files-user-client/src/core/types.ts:930