Skip to content

Constrain content parameter uploads. - #5

Merged
samuel-williams-shopify merged 9 commits into
mainfrom
upload-constraints
Aug 8, 2026
Merged

Constrain content parameter uploads.#5
samuel-williams-shopify merged 9 commits into
mainfrom
upload-constraints

Conversation

@samuel-williams-shopify

@samuel-williams-shopify samuel-williams-shopify commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Add field-specific media type and size constraints for declared content parameter uploads.

Handlers receive a constrained streaming upload with each, copy_to, and secure save operations. Unsupported media types and oversized uploads become path-specific validation errors, and unread content is still consumed through the configured limit.

Accepted upload media ranges are compiled into immutable Protocol::Media::Set instances. The update moves to protocol-media ~> 0.2 and keeps content parser dispatch focused on exact, normalized media types.

Depends on socketry/protocol-multipart#10 and its v0.7 release.

@samuel-williams-shopify
samuel-williams-shopify marked this pull request as ready for review August 7, 2026 23:35
@samuel-williams-shopify
samuel-williams-shopify merged commit c43cdf6 into main Aug 8, 2026
40 checks passed
@samuel-williams-shopify
samuel-williams-shopify deleted the upload-constraints branch August 8, 2026 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant