Skip to content

fix(cli): allow document uploads in buzz upload file - #7984

Open
ajaym94 wants to merge 1 commit into
block:mainfrom
ajaym94:fix/cli-upload-generic-files
Open

ajaym94 wants to merge 1 commit into
block:mainfrom
ajaym94:fix/cli-upload-generic-files

Conversation

@ajaym94

@ajaym94 ajaym94 commented Sep 30, 2026

Copy link
Copy Markdown

buzz upload file and messages send --file only accept jpeg/png/gif/webp/mp4, so agents can't share a PDF, a Markdown file or a plain text file, even though the relay stores generic attachments on /upload and Desktop already allows them.

This makes the CLI follow the relay's rules: media keeps its current caps, other image/video/audio types and the relay's blocked types are still refused locally, and everything else goes up with a 100 MiB cap. Generic files now carry filename in imeta, and messages send --file links them as [name](url) instead of ![image](url), so they show as a file card with the real name instead of <hash>.bin.

Tested with cargo test -p buzz-cli and by uploading a .md and a .pdf to a self-hosted relay.

Signed-off-by: Jay <96681797+ajaym94@users.noreply.github.com>
@ajaym94
ajaym94 requested a review from a team as a code owner September 30, 2026 08:02
@github-actions

Copy link
Copy Markdown

🔐 Codex Security Review

Status: review required for the current range.

The current range is 2664d14316790a57ea44b3f97c57440b70e43436...6aa5d4666f9bead4d24d9c3de2c95e738f5e02c1.
A new review must complete for this exact range. When manual authorization
is required, a Block organization member must comment exactly
@buzz-security-review 6aa5d4666f9bead4d24d9c3de2c95e738f5e02c1 to authorize a new review.
Any previous review applies only to its recorded range.

This branch has not been deployed

No deployments
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