files_upload_v2 filename required even though content provided #1356
Labels
bug
M-T: A confirmed bug report. Issues are confirmed when the reproduction steps are documented
Version: 3x
web-client
Milestone
Reproducible in:
The Slack SDK version
slack-sdk 3.21.2
Python runtime version
Python 3.10.11
OS info
ProductName: macOS
ProductVersion: 12.3
BuildVersion: 21E230
Darwin Kernel Version 21.4.0: Mon Feb 21 20:36:53 PST 2022; root:xnu-8020.101.4~2/RELEASE_ARM64_T8101
Steps to reproduce:
Expected result:
File uploaded successfully without specifying
filename
parameter because according to the docstring offiles_upload_v2
:Actual result:
This happens because
files_upload_v2
calls_to_v2_file_upload_item
which does not create filename iffile
is None. The resultant files are then passed tofiles_getUploadURLExternal
for whichfilename
is required.Suggestion
Currently:
Change to:
The text was updated successfully, but these errors were encountered: