Skip to content

Numbered Description

Content Type

NumberDescriptionTable NameModel const constant definition
1UserusersTYPE_USER
2GroupgroupsTYPE_GROUP
3HashtaghashtagsTYPE_HASHTAG
4PostpostsTYPE_POST
5CommentcommentsTYPE_COMMENT
6Post Logpost_logsTYPE_POST_LOG
7Comment Logcomment_logsTYPE_COMMENT_LOG
8Extend ContentextendsTYPE_EXTEND

File Type

NumberDescriptionData table name and columnModel const constant definition
1Imagefiles->typeTYPE_IMAGE
2Videofiles->typeTYPE_VIDEO
3Audiofiles->typeTYPE_AUDIO
4Documentfiles->typeTYPE_DOCUMENT

Type of File Usage

NumberDescriptionData table name and columnScenes
1Other / Unknown usesfile_usages->usage_type
2System Configurationfile_usages->usage_typePictures of the various configurations of the control panel
3Operation Configurationfile_usages->usage_typePictures configured in operation
Decorate, icons, copywriting
4Stickersfile_usages->usage_type
5User Profilefile_usages->usage_typeUser avatar, banner, decorate
6Conversationsfile_usages->usage_typeFiles sent in conversation messages
7Postsfile_usages->usage_type
8Commentsfile_usages->usage_type
9Extend Contentfile_usages->usage_type
10Pluginsfile_usages->usage_type

Path rules for file types

php
FileHelper::fresnsFileStoragePath($fileType, $usageType);

Released under the Apache-2.0 License