{"version":"2.1.333","anchor":"uploads-can-send-content-sha256-gated-by-tengu-ticklish-cor","canonical_anchor":"file-upload-result-now-carries-content-sha256","heading":"File uploads carry a content hash and image size, and sending refuses paths with \"..\"","tier":"notice","area":"Elsewhere","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/uploads-can-send-content-sha256-gated-by-tengu-ticklish-cor","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### File uploads carry a content hash and image size, and sending refuses paths with \"..\"\n\nUploaded files now carry a content_sha256 hash and image dimensions, SendUserFile gains a refusal check, and paths with \"..\" can be refused\n\n**Unclear.** It is not known whether the path check is on when the server sends nothing.\n\n**What**\n\n`SendUserFile` is the tool Claude uses to send a file to you, and attachments are files uploaded alongside a message. Several pieces changed:\n\n- A successful upload result now includes `content_sha256`, a fingerprint computed from the file's bytes. A failed upload result is returned unchanged.\n\n- Attachment records accept an optional `content_sha256`. It must match the expected format, and a malformed value is dropped without an error.\n\n- Attachment uploads compute the hash from the bytes as they are sent and attach it to the attachment record.\n\n- Local images now also carry `image_width` and `image_height`, read from the file.\n\n- The hash is added to upload records only when the switch `tengu_ticklish_coral` allows it; the code's fallback for that switch is on, and nothing has been read about it. At one of the two places it is also added only when a hash exists.\n\n- A new check refuses a path that has `..` after a folder name, saying `Nothing was sent` and suggesting the cleaned-up path when there is one. It runs only when `bot_protected_tengu_woolly_fountain` is on; nothing has been read about `tengu_woolly_fountain`.\n\n- `SendUserFile` gains a `refusedWhereverItRuns` check, and permissions are now passed to the upload.\n\n- `SendUserFile` now exposes a description of its inputs when a condition holds, and its `status` value defaults to 'normal' when left out instead of being required. The code's fallback for `tengu_send_user_file` is on; nothing has been read about that switch.\n\n- `tengu_golden_bird` still shapes the tool's instructions. v2.1.332 compiled it off by default, the flag server returned no answer for this site's account and off for the anonymous baseline, and no reading has been taken under this release yet.\n\n- `tengu_playful_panda`, `tengu_level_wren`, `tengu_zany_flask` and `tengu_deep_plum` keep the same fallbacks; nothing has been read about any of them.\n\n**Why**\n\nThe app receiving a file now gets its fingerprint and, for images, its size, so it can check what arrived. Sending can now stop on a path that climbs out of a folder with `..`, and a request that leaves out `status` no longer fails.\n\n- Flag `tengu_ticklish_coral`: Not enough to say (read for one account on one subscription tier against v2.1.333; this account: no value returned, anonymous baseline: no value returned, compiled default: on) These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.\n- Area: Elsewhere\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}