Add display_filename parameter to SlackAPIFileOperator#62112
Merged
vincbeck merged 2 commits intoFeb 18, 2026
Merged
Conversation
vincbeck
approved these changes
Feb 18, 2026
choo121600
pushed a commit
to choo121600/airflow
that referenced
this pull request
Feb 22, 2026
* feat(slack): add display_filename to SlackAPIFileOperator * fix(slack): fix Sphinx spellcheck for display_filename docstring
Subham-KRLX
pushed a commit
to Subham-KRLX/airflow
that referenced
this pull request
Mar 4, 2026
* feat(slack): add display_filename to SlackAPIFileOperator * fix(slack): fix Sphinx spellcheck for display_filename docstring
dominikhei
pushed a commit
to dominikhei/airflow
that referenced
this pull request
Mar 11, 2026
* feat(slack): add display_filename to SlackAPIFileOperator * fix(slack): fix Sphinx spellcheck for display_filename docstring
Ankurdeewan
pushed a commit
to Ankurdeewan/airflow
that referenced
this pull request
Mar 15, 2026
* feat(slack): add display_filename to SlackAPIFileOperator * fix(slack): fix Sphinx spellcheck for display_filename docstring
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #61952
Add
display_filenameparameter toSlackAPIFileOperatorso users can control the file name shown in Slack. Previously, content-only uploads always appeared as "Uploaded file" with no way to customize. This parameter addresses that limitation. Also, it does so without changing the existing file path behavior. This approach was taken becausefilenameis already used as the file path (where to read the file), and reusing it for the display name would break backward compatibility.Before Screenshot
After (4 cases)
filename="data/airflow.png",
...
)
filename="data/airflow.png",
display_filename="custom_airflow.png",
...
)
content=IMAGE_CONTENT,
...
)
content=IMAGE_CONTENT,
display_filename="custom_airflow.png",
...
)
Was generative AI tooling used to co-author this PR?
{pr_number}.significant.rstor{issue_number}.significant.rst, in airflow-core/newsfragments.