MCPcopy Index your code
hub / github.com/TaskingAI/TaskingAI / check_file_size

Function check_file_size

backend/app/routes/file/utils.py:58–60  ·  view source on GitHub ↗
(limit_mb: int, size: int)

Source from the content-addressed store, hash-verified

56
57
58def check_file_size(limit_mb: int, size: int):
59 if size > limit_mb * 1024 * 1024:
60 raise_request_validation_error("File size is too large.")
61
62
63def check_ext(purpose_info: PurposeInfo, ext: str):

Callers 2

upload_imageFunction · 0.90
api_upload_fileFunction · 0.90

Calls 1

Tested by

no test coverage detected