slack-rs-api icon indicating copy to clipboard operation
slack-rs-api copied to clipboard

Support files.upload and users.setPhoto

Open mthjones opened this issue 8 years ago • 4 comments

Support the files.upload api method.

mthjones avatar Mar 21 '16 02:03 mthjones

We could pull in a multipart dependency with a file_upload feature flag so that users can opt into support or not.

mthjones avatar Mar 21 '16 02:03 mthjones

Updating this PR to also include adding support for users.setPhoto, as it is unsupported for the same reason.

mthjones avatar Mar 06 '17 00:03 mthjones

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.

Fuuzetsu avatar Aug 16 '21 02:08 Fuuzetsu

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.

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.

Fuuzetsu avatar Nov 23 '21 00:11 Fuuzetsu