MCPcopy Index your code
hub / github.com/apache/answer / GetMaxImageSize

Method GetMaxImageSize

internal/schema/siteinfo_schema.go:134–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

132}
133
134func (s *SiteAdvancedResp) GetMaxImageSize() int64 {
135 if s.MaxImageSize <= 0 {
136 return constant.DefaultMaxImageSize
137 }
138 return int64(s.MaxImageSize) * 1024 * 1024
139}
140
141func (s *SiteAdvancedResp) GetMaxAttachmentSize() int64 {
142 if s.MaxAttachmentSize <= 0 {

Callers 3

UploadAvatarFileMethod · 0.80
UploadPostFileMethod · 0.80
UploadBrandingFileMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected