-
Notifications
You must be signed in to change notification settings - Fork 848
Open
Labels
Version: 3xauto-triage-skipquestionM-T: User needs support to use the projectM-T: User needs support to use the projectserver-side-issueweb-client
Description
I am trying to upload a file to a private Slack channel using the Slack API via the following Python script.
However, once uploaded, the file cannot be downloaded by users in the channel. I am looking for help to understand why this is happening and how to resolve it.
Python runtime version
3.12.1
I used these step:
- https://slack.com/api/files.getUploadURLExternal
- https://slack.com/api/files.completeUploadExternal
- https://slack.com/api/files.sharedPublicURL
Actual result:
{
"ok": true,
"file": {
"id": "XXXXXXXXXX",
"created": 1729848820,
"timestamp": 1729848820,
"name": "xxxxxxxxxxxxxxxxxx.xxx",
"title": "xxxxxxxxxxxxxxxxxxxx.xxx",
"mimetype": "",
"filetype": "",
"pretty_type": "",
"user": "XXXXXXXXX",
"user_team": "XXXXXXXX",
"editable": false,
"size": 61652577,
"mode": "hosted",
"is_external": false,
"external_type": "",
"is_public": false,
"public_url_shared": true,
"display_as_bot": false,
"username": "",
"url_private": "https://files.slack.com/files-pri/xxxxxxxxx-xxxxxxxxxx/xxxxxxxxxxxxxxxxxx.xxx",
"url_private_download": "https://files.slack.com/files-pri/xxxxxxxxxxxxx-xxxxxxx/download/xxxxxxxxxxxxxxxxxx.xxx",
"media_display_type": "unknown",
"permalink": "https://xxxxxxxxx.slack.com/files/xxxxxxxxxx/xxxxxxxxxxxxxxx/xxxxxxxxxxxxx.xxx",
"permalink_public": "https://slack-files.com/xxxxxxxxxx-xxxxxxxxxxxxx-xxxxxxxxxxxxx",
"comments_count": 0,
"is_starred": false,
"shares": {},
"channels": [],
"groups": [],
"ims": [],
"has_more_shares": false,
"has_rich_preview": false,
"file_access": "visible"
}
}
Metadata
Metadata
Assignees
Labels
Version: 3xauto-triage-skipquestionM-T: User needs support to use the projectM-T: User needs support to use the projectserver-side-issueweb-client