You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
files.uploadV2 image alt text is not saved by Slack #2788
@slack/web-api@8.2.0. Also seen on 7.19.0. The current main (8730b5e) has the same code.
Node.js Version
v24.21.0
Operating System
macOS 27.0.1
Steps to Reproduce
Create a bot with the files:write and files:read scopes, and invite it to a channel.
Upload an image with alt text:
awaitclient.files.uploadV2({channel_id: 'C0123456789',file: './image.png',filename: 'image.png',alt_text: 'A blue cat',});
Wait a few seconds. Then call files.info for the uploaded file and check alt_txt.
Expected Result
files.info returns alt_txt: 'A blue cat', and the image shows an ALT badge on hover in the Slack client.
Actual Result
files.info has no alt_txt field, and the image shows no ALT badge on hover.
Cause: uploadV2 passes the text to files.getUploadURLExternal as alt_text. The API expects alt_txt (docs), so Slack ignores the value. The request body looks like this:
changed the title [-]files.uploadV2 does not save image alt text (sends alt_text, but the API expects alt_txt)[/-][+]files.uploadV2 image alt text is not saved by Slack[/+]on Oct 22, 2026
Activity
[-]files.uploadV2 does not save image alt text (sends alt_text, but the API expects alt_txt)[/-][+]files.uploadV2 image alt text is not saved by Slack[/+]