-
Notifications
You must be signed in to change notification settings - Fork 636
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
upload file #62
Comments
Thanks, that would be great. On 8 July 2014 14:20, Sergey Balbeko notifications@github.com wrote:
|
+1 |
1 similar comment
+1 |
It doesn't look like this is supported currently. I think it'd require a few things to get going. For reference, here is the file upload API: https://api.slack.com/methods/files.upload
At that point in a script, you'd be able to call For the bonus round, could look at adding explicit uploading support to hubot. At least Campfire supports it, so if there's 2 adapters would have use for it, I'm cool with seeing that in hubot upstream. |
After taking a look at https://api.slack.com/methods/files.upload |
I asked slack support about this and the recommended way to do it is using a non bot user. |
cc hubotio/hubot#996 where there's some discussion around adding a method to hubot adapters for uploading files |
It looks like they've recently changed this policy and now bot users are allowed to upload files: I can confirm this is possible using the files upload API: https://api.slack.com/methods/files.upload |
+1 |
1 similar comment
+1 |
I feel like slackapi/node-slack-sdk#56 should be a priority to get merged, the code is written up it just looks like the PR has fallen silent. |
@technicalpickles do we have any sort of standard for uploadFile? or do you want me to make up one like I did for emote? I have a PR in for idoshamun/node-slack-upload#2 which mostly works anyways, I was going to write a stub/fill for response.uploadFile using that for now. |
@halkeye there isn't. There is discussion in hubotio/hubot#1036 about more 'types'. I think uploadFile makes sense though. |
+1 |
This will be fixed in #309 |
Is there a way to upload a file to slack?
I see how to send messages and links, but I want to upload a local image as an attachment.
Is this possible?
The text was updated successfully, but these errors were encountered: