You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
vibed/pages/.beans/pages-ufk2--raise-upload-li...

1.4 KiB

title status type priority created_at updated_at
Raise upload limits: per-file 16 MiB, total 48 MiB, body 24 MiB completed task high 2026-07-21T16:35:01Z 2026-07-21T16:36:48Z

User's wasm binary (bin_bg.wasm) exceeds the 5 MiB per-file cap ("exceeds the maximum per-file size of 5242880 bytes"). Moderate bump chosen to fit large wasm while staying well under the Worker's ~128 MiB memory ceiling (body is buffered + decompressed in memory).

New coherent limit set:

  • max_file: 5 -> 16 MiB
  • max_uncompressed_total: 25 -> 48 MiB
  • max_compressed (== MAX_UPLOAD_BYTES / body cap): 10 -> 24 MiB
  • max_entries / max_path_len / max_depth: unchanged

Spots:

  • core/upload.rs UploadLimits::default() (values + doc comment)
  • routes/api.rs MAX_UPLOAD_BYTES const (+ comment); DefaultBodyLimit in routes/mod.rs follows it automatically
  • static/index.html client-side MAX_UPLOAD_BYTES pre-check (line ~871)

Then: validate (all six), commit, push, deploy.

Summary of Changes

Raised default upload limits to fit large wasm: max_file 5 to 16 MiB, max_uncompressed_total 25 to 48 MiB, max_compressed / MAX_UPLOAD_BYTES / axum body cap 10 to 24 MiB (max_entries/path_len/depth unchanged). Updated UploadLimits::default, routes::api::MAX_UPLOAD_BYTES, the frontend client-side pre-check + message, and design doc §2.2 numbers. Still well under the Worker ~128 MiB memory ceiling. Validation green: 196 unit + 20 doctests.