Images binding: metadata filtering, signedUrl, and createDirectUpload#6880
Open
Monark-Arkmon wants to merge 3 commits into
Open
Images binding: metadata filtering, signedUrl, and createDirectUpload#6880Monark-Arkmon wants to merge 3 commits into
Monark-Arkmon wants to merge 3 commits into
Conversation
mglewis
approved these changes
Jul 13, 2026
jasnell
approved these changes
Jul 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three additions to the Images binding, bringing
env.IMAGES.hostedup to parity with capabilities that already exist via the REST API / manual workflows:Metadata filtering on
list()Adds filter.metadata to ImageListOptions, matching the /v2/images metadata filtering already supported by images-core. Vectorize-style shape: bare operators (eq/in/gt/gte/lt/lte), a bare value is implicit eq. Nested under filter.metadata (not top-level) to leave room for filter.creator later without breaking this shape.
signedUrl() on ImageHandle
Lets a Worker get a signed imagedelivery.net URL for a private image without handling the account signing key or HMAC logic itself. Signing happens server-side in images-edge-api; hosted.image(id) already returns an RPC stub, so this method forwards automatically, no logic change needed in workerd beyond the type.
createDirectUpload() on HostedImagesBinding
Lets a Worker create a Direct Creator Upload link natively, instead of hand-rolling a fetch() to /images/v2/direct_upload with an API token as a secret. Lands directly on HostedImagesBinding (not per-image), so it needs an explicit forwarding method on HostedImagesBindingImpl, matching how upload()/list() already forward to the RPC stub.