MCPcopy Create free account
hub / github.com/daodst/chat / requestEntityTooLargeJSONResponse

Function requestEntityTooLargeJSONResponse

mediaapi/routing/upload.go:239–244  ·  view source on GitHub ↗
(maxFileSizeBytes config.FileSizeBytes)

Source from the content-addressed store, hash-verified

237}
238
239func requestEntityTooLargeJSONResponse(maxFileSizeBytes config.FileSizeBytes) *util.JSONResponse {
240 return &util.JSONResponse{
241 Code: http.StatusRequestEntityTooLarge,
242 JSON: jsonerror.Unknown(fmt.Sprintf("HTTP Content-Length is greater than the maximum allowed upload size (%v).", maxFileSizeBytes)),
243 }
244}
245
246// Validate validates the uploadRequest fields
247func (r *uploadRequest) Validate(maxFileSizeBytes config.FileSizeBytes) *util.JSONResponse {

Callers 3

doUploadMethod · 0.85
ValidateMethod · 0.85

Calls

no outgoing calls

Tested by 1