Documentation ¶
Index ¶
Constants ¶
View Source
const ( UploadTypeImage = "image" UploadTypeMedia = "media" UploadTypeDocument = "document" UploadTypeCompression = "compression" UploadTypeFile = "file" )
View Source
const ( FormNameFile = "file" FormNameFileBase64Data = "file_base64_data" )
View Source
const ( ErrorNotFoundUserIDFromRequestClaims = "not found user_id from request claims" ErrorNotFoundClaimsFromRequest = "not found claims from request" ErrorFalidSaveFile = "Fail to save file" ErrorNotFoundEncodeData = "Not Found encode data" ErrorNotFoundFormData = "Not found form data" ErrorNotAllowUploadLocal = "not allow upload local" )
View Source
const (
UploadStorageLocal = "local"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestServeFile ¶
type RequestServeFile struct { RequestServeFileType Remark string `form:"remark"` }
type RequestServeFileType ¶
type RequestServeFileType struct {
FileType string `form:"file_type" validate:"required"`
}
type RequestServeUploadID ¶
Click to show internal directories.
Click to hide internal directories.