fix: harden upload resilience and contracts
This commit is contained in:
+3
-2
@@ -1,11 +1,11 @@
|
||||
type FileStatus = 'pending' | 'uploading' | 'success' | 'error'
|
||||
export type FileStatus = 'pending' | 'uploading' | 'success' | 'error'
|
||||
|
||||
export interface TextureFile {
|
||||
name: string
|
||||
file: File
|
||||
}
|
||||
|
||||
type DriveStatus = 'pending' | 'uploading' | 'success' | 'error' | 'skipped'
|
||||
export type DriveStatus = 'pending' | 'uploading' | 'success' | 'error' | 'skipped'
|
||||
|
||||
export interface FolderEntry {
|
||||
folderName: string
|
||||
@@ -14,6 +14,7 @@ export interface FolderEntry {
|
||||
status: FileStatus
|
||||
progress: number
|
||||
error?: string
|
||||
uploadWarning?: string
|
||||
filename?: string
|
||||
modelUrl?: string
|
||||
assetUrls: Record<string, string>
|
||||
|
||||
Reference in New Issue
Block a user