github.com/0chain/gosdk@v1.17.11/dev/blobber/model/upload_form_data.go (about) 1 package model 2 3 // UploadFormData form data of upload 4 type UploadFormData struct { 5 ConnectionID string `json:"connection_id,omitempty"` 6 // Filename remote file name 7 Filename string `json:"filename,omitempty"` 8 // Path remote path 9 Path string `json:"filepath,omitempty"` 10 11 // ValidationRoot of shard data (encoded,encrypted) where leaf is sha256 hash of 64KB data 12 ValidationRoot string `json:"validation_root,omitempty"` 13 // Hash hash of shard thumbnail (encoded,encrypted) 14 ThumbnailContentHash string `json:"thumbnail_content_hash,omitempty"` 15 16 // FixedMerkleRoot merkle root of shard data (encoded, encrypted) 17 FixedMerkleRoot string `json:"fixed_merkle_root,omitempty"` 18 19 // ActualHash hash of orignial file (unencoded, unencrypted) 20 ActualHash string `json:"actual_hash,omitempty"` 21 // ActualSize total bytes of orignial file (unencoded, unencrypted) 22 ActualSize int64 `json:"actual_size,omitempty"` 23 // ActualThumbnailSize total bytes of orignial thumbnail (unencoded, unencrypted) 24 ActualThumbSize int64 `json:"actual_thumb_size,omitempty"` 25 // ActualThumbnailHash hash of orignial thumbnail (unencoded, unencrypted) 26 ActualThumbHash string `json:"actual_thumb_hash,omitempty"` 27 28 MimeType string `json:"mimetype,omitempty"` 29 CustomMeta string `json:"custom_meta,omitempty"` 30 EncryptedKey string `json:"encrypted_key,omitempty"` 31 32 IsFinal bool `json:"is_final,omitempty"` // current chunk is last or not 33 ChunkHash string `json:"chunk_hash"` // hash of current chunk 34 ChunkIndex int `json:"chunk_index,omitempty"` // the seq of current chunk. all chunks MUST be uploaded one by one because of streaming merkle hash 35 ChunkSize int64 `json:"chunk_size,omitempty"` // the size of a chunk. 64*1024 is default 36 UploadOffset int64 `json:"upload_offset,omitempty"` // It is next position that new incoming chunk should be append to 37 38 }