Skip to content

fix(slack): read upload alt text from alt_txt like real Slack - #329

Open
kimoto wants to merge 1 commit into
vercel-labs:mainfrom
kimoto:fix/slack-upload-alt-txt
Open

kimoto wants to merge 1 commit into
vercel-labs:mainfrom
kimoto:fix/slack-upload-alt-txt

Conversation

@kimoto

@kimoto kimoto commented Oct 22, 2026 •

Copy link
Copy Markdown

Real Slack's files.getUploadURLExternal takes image alt text as alt_txt (docs) and ignores alt_text. The emulator had it the other way around. I confirmed the real behavior with uploads to a Slack workspace.

Clients still sending alt_text, like @slack/web-api 8.2.0, now lose their alt text here, as on real Slack. A fix for the SDK is proposed in slackapi/node-slack-sdk#2789.

Checked by: the existing upload test, which now sends alt_txt; tsc, eslint, and Prettier.

@vercel

vercel Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

@kimoto is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

@kimoto kimoto changed the title fix(slack): read alt_txt in files.getUploadURLExternal fix(slack): read upload alt text from alt_txt like real Slack Oct 22, 2026
Real Slack's files.getUploadURLExternal reads image alt text from
alt_txt and ignores alt_text. The emulator did the opposite.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kimoto
kimoto force-pushed the fix/slack-upload-alt-txt branch from 1ac03b3 to 8613dfa Compare October 22, 2026 21:20

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