Skip to content

files

Column NameTypeCommentDefaultNullRemark
idbigint UNSIGNEDPrimary Key IDNOAuto Increment
fidvarchar(32)Publicly available IDNOUnique
typetinyint UNSIGNEDFile Type1NO1.Image / 2.Video / 3.Audio / 4.Document
namevarchar(128)File NameNOFull original name, filename when uploading, including extension
mimevarchar(255)File Mime TypeNOFor example: image/jpeg or video/mp4
extensionvarchar(32)File Extension NameNOFor example: jpg or jpeg
sizeint UNSIGNEDFile SizeNOUnit Byte
widthsmallint UNSIGNEDImage WidthYESImage file specific: pixels px
heightsmallint UNSIGNEDImage HeightYESImage file specific: pixels px
durationsmallint UNSIGNEDAudio and Video DurationYESUnit: seconds
shavarchar(128)File shaYESFile sha encoding
sha_typevarchar(16)File sha TypeYESFor example, sha1 or sha256
warning_typetinyint UNSIGNEDWarning Type1NO1.No 2.Nudity 3.Violence 4.Sensitive
pathvarchar(255)File PathNORelative path
transcoding_statetinyint UNSIGNEDAudio or Video Attachment Transcoding Status1YESTranscoding status: 1.Pending 2.Transcoding 3.Transcoding Completed 4.Transcoding Failed
transcoding_reasonvarchar(255)Audio or Video Attachment Transcoding Failure ReasonYESTranscoding failure reason
video_poster_pathvarchar(255)Video Cover ImageYESVideo cover image path
original_pathvarchar(255)Original File PathYESRelative path
If the file involves transcoding, the storage path of the file before transcoding
If not, leave empty
is_long_imagetinyint UNSIGNEDIs Long Image0NOImage file specific
0.No / 1.Yes
is_uploadedtinyint UNSIGNEDIs Uploaded1NO0.No / 1.Yes
is_enabledtinyint UNSIGNEDIs Valid1NO0.Invalid / 1.Valid
physical_deletiontinyint UNSIGNEDPhysical Deletion Status0NO0.No / 1.Yes (File physically deleted)
created_attimestampCreate TimeuseCurrentNOFor example, MySQL defaults to CURRENT_TIMESTAMP
updated_attimestampUpdate TimeYES
deleted_attimestampDelete TimeYES

File Types

typeFile TypeDomain stored in which key nameBackend Setting Interface
1Imageimage_bucket_domainPanel > Systems > Storage > Image
2Videovideo_bucket_domainPanel > Systems > Storage > Video
3Audioaudio_bucket_domainPanel > Systems > Storage > Audio
4Documentdocument_bucket_domainPanel > Systems > Storage > Document

Long Image Description

Field: is_long_image

When the image width is greater than 700, if the height is equal to or greater than 3.5 times the width, it is considered a long image.

For example:

  • image_width = 700
  • image_height = 2100

Released under the Apache-2.0 License