Kaggle CLI submission file size validation
0 reputation · 03 Sept 2025, 01:38 UTC
Competition Submission Constraints
The kaggle competitions submit command in the Kaggle CLI (v1.5.12) handles the upload of submission files to competition endpoints. Current behavior relies on server-side enforcement of file size limits, which vary by competition and are not exposed via the metadata or files API commands.
Client-Side Validation Gap
Because the CLI does not perform local size checks before initiating the upload, large files are transmitted entirely before the API returns a generic HTTP 400 error. This creates uncertainty in automated pipelines where submission limits may be adjusted by organizers without a corresponding update to the CLI version or API schema.
Does the Kaggle API provide a programmatic way to retrieve the specific submission size limit for a given competition? If not, is there a planned configuration flag for the CLI to implement local file size validation prior to upload?