Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 470 Bytes

file_schemas.md

File metadata and controls

35 lines (29 loc) · 470 Bytes

File Schemas

File
Upload Session

File Chunk

File

type File = {
    id: Pointer
  ; name: string
  ; sizeInBytes: number
  ; fileExtension: string
  ; url: string
}

Upload Session

type UploadSession = {
  uploadSessionId: string
}

File Chunk

type FileChunk = {
    fileId: string
  ; uploadSessionId: string
  ; chunkId: number
  ; chunkHash: string
}