slack-rs-api
slack-rs-api copied to clipboard
Support files.upload and users.setPhoto
Support the files.upload api method.
We could pull in a multipart
dependency with a file_upload
feature flag so that users can opt into support or not.
Updating this PR to also include adding support for users.setPhoto
, as it is unsupported for the same reason.
files.upload
can still be used through the content
field even without multi-part upload. The codegen for it works fine so maybe it's better to have something than nothing.
files.upload
can still be used through thecontent
field even without multi-part upload. The codegen for it works fine so maybe it's better to have something than nothing.
I've been doing this for a while but now that it broke, I realise its downside: you're limited in URI size so you can only upload quite small files.