Skip to content

Conversation

@t4k
Copy link

@t4k t4k commented Feb 14, 2025

This changes only the files.upload call that we have been using. It's minimal to begin with. Some of the help documentation likely will have to be updated, as well as some of the additional code in the fileupload() function, particularly cases which are potentially no longer relevant.

The new files.getUploadURLExternal endpoint requires a length parameter, which seems quite tricky to implement in a very portable and efficient way. I went with wc -c < ${_file} | xargs because it seems to be the most cross-platform, but may be slow.

The new files.completeUploadExternal endpoint only accepts Channel IDs (and not channel names), which is a potentially significant usage change.

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 this pull request may close these issues.

1 participant