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 TypeYESFor example: image/jpeg or video/mp4
extensionvarchar(32)File Extension NameNOFor example: jpg or jpeg
sizeint UNSIGNEDFile SizeNOUnit Byte
md5varchar(128)File md5YESFile md5 encoding
shavarchar(128)File shaYESFile sha encoding
sha_typevarchar(16)File sha TypeYESFor example, SHA1 or SHA-256
diskvarchar(32)File DiskremoteNOlocal or remote
pathvarchar(255)File PathNORelative path
image_handle_positionvarchar(16)Image Processing PositionYESApplicable to scenarios where physical thumbnails are generated
Manage physical files based on this configuration
image_widthsmallint UNSIGNEDImage WidthYESImage file specific: pixels px
image_heightsmallint UNSIGNEDImage HeightYESImage file specific: pixels px
image_is_longtinyint UNSIGNEDIs Long Image0NOImage file specific
0.No / 1.Yes
audio_timesmallint UNSIGNEDAudio DurationYESUnit: seconds, audio file specific
video_timesmallint UNSIGNEDVideo DurationYESUnit: seconds, video file specific
video_poster_pathvarchar(255)Video Cover ImageYESVideo cover image path
more_jsonjsonSpare FieldYESFor example, some clients or editors can publish content with tagged images like Xiaohongshu, so the information stored here is tag information
transcoding_statetinyint UNSIGNEDAudio and Video Attachment Transcoding Status1YESTranscoding status: 1.Pending 2.Transcoding 3.Transcoding Completed 4.Transcoding Failed
transcoding_reasonvarchar(255)Audio and Video Attachment Transcoding Failure ReasonYESTranscoding failure reason
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_sensitivetinyint UNSIGNEDIs Sensitive0NO0.No / 1.Yes
is_enabledtinyint UNSIGNEDIs Valid1NO0.Invalid / 1.Valid
physical_deletiontinyint UNSIGNEDPhysical Deletion Status0NO0.No / 1.Yes (File physically deleted)
created_attimestampCreate TimeCURRENT_TIMESTAMPNO
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: image_is_long

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