Skip to content

Uploaded files don't uses the filename as the title #1747

@avjkumar

Description

@avjkumar

Reproducible in:

internal_utils.py

fn: _to_v2_file_upload_item

Link to fn

title will never be None because we've given it a default value of 'Uploaded File' which seems less helpful than just using the actual filename of the file

The Slack SDK version

Name: slack-sdk
Version: 3.36.0

Python runtime version

Python 3.11.11

OS info

ProductName:		macOS
ProductVersion:		15.6.1
BuildVersion:		24G90
Darwin Kernel Version 24.6.0: Mon Jul 14 11:30:30 PDT 2025; root:xnu-11417.140.69~1/RELEASE_ARM64_T6020

Steps to reproduce:

Pass no title, get 'Uploaded file' instead of filename

Expected result:

title should equal filename

Actual result:

title = 'Uploaded file'

Requirements

For general questions/issues about Slack API platform or its server-side, could you submit questions at https://my.slack.com/help/requests/new instead. 🙇

Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions