Open lakhoune opened 3 years ago
I took a look at it. This is actually a problem with how the files receive their type extensions when converting from base64 to file. When receiving a file from a service, the "fileType" attribute needs to exactly match the file extension. In your case, you fileType was "image/png", which when appended to your file called "visual" for example, leads to visual.image/png which of course does not work. For a quick fix for your service, just set the fileType to "png" before responding to the social bot manager ;). The problem with the Slack implementation currently, is that each file you receive from the bot, is of the type file, which is not the best option. In this case, the fastest "fix" from my side, would be to more clearly document the json response which is expected by the service.
Okay. But I think it would be better in the future to keep the filetype image/png and then check the filename if it has the extension (e.g. myImage.png) and if the extension is missing (e.g. image) append the right extension based on the filetype
Bug Details: