(maxFileSizeBytes config.FileSizeBytes)
| 237 | } |
| 238 | |
| 239 | func 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 |
| 247 | func (r *uploadRequest) Validate(maxFileSizeBytes config.FileSizeBytes) *util.JSONResponse { |
no outgoing calls