Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slack files.upload API method will stop working on March 11, 2025 #140

Open
morozgrafix opened this issue Feb 12, 2025 · 2 comments · May be fixed by #141
Open

Slack files.upload API method will stop working on March 11, 2025 #140

morozgrafix opened this issue Feb 12, 2025 · 2 comments · May be fixed by #141

Comments

@morozgrafix
Copy link

Got the following email from Slack regarding files.upload API method deprecation on March 11, 2025. It seems that plugin will need an update to continue working.

We want to remind you about an upcoming date and change to the files.upload web API method that affects your OctoSlack app.

March 11, 2025
Support for the files.upload API will be discontinued.
To prepare for this change, we recommend migrating away from files.upload and instead using the combination of files.getUploadURLExternal and files.completeUploadExternal. More information on how to use these two APIs together can be found on our Working with files documentation. You can also leverage Slack's SDKs to help you transition to this new way of uploading files by visiting our api.slack page.

To view details about OctoSlack, please visit:
OctoSlack Detail View
If your app using the files.upload API does not update to the method above, file uploads from your app will no longer work beginning on March 11, 2025.

You can learn more about this change in our developer changelog. If you have questions about this change or need help, please reply to this message or reach out to us at [email protected].

Thanks,
The team at Slack

@morozgrafix
Copy link
Author

morozgrafix commented Feb 12, 2025

It looks like solution would be to switch from call to slack_client3.files_upload to files_upload_v2 method supported by slack_sdk. Here is a release note about that transition: https://github.com/slackapi/python-slack-sdk/releases/tag/v3.19.0

Additional info about files.upload API method: https://api.slack.com/changelog/2024-04-a-better-way-to-upload-files-is-here-to-stay

I will try to get that implemented, but if anyone with better knowledge of OctoSlack can take a look it might be faster way to go.

Thanks.

@morozgrafix
Copy link
Author

morozgrafix commented Feb 12, 2025

Created this fork and updated python 3 client call to files_upload_v2 Tested on my local install. https://github.com/morozgrafix/Octoslack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant