Add TypeEbook. Clarify documentation on File Type and File Format.

This commit is contained in:
Kleissner
2021-09-15 16:25:09 +02:00
parent 95640fede3
commit 16e9c0e67f
4 changed files with 11 additions and 10 deletions

View File

@@ -123,8 +123,8 @@ type apiFileTagRaw struct {
type apiBlockRecordFile struct {
ID uuid.UUID `json:"id"` // Unique ID.
Hash []byte `json:"hash"` // Blake3 hash of the file data
Type uint8 `json:"type"` // Type (low-level)
Format uint16 `json:"format"` // Format (high-level)
Type uint8 `json:"type"` // File Type. For example audio or document. See TypeX.
Format uint16 `json:"format"` // File Format. This is more granular, for example PDF or Word file. See FormatX.
Size uint64 `json:"size"` // Size of the file
Folder string `json:"folder"` // Folder, optional
Name string `json:"name"` // Name of the file