abrom / rocketchat-ruby

Ruby wrapper for RocketChat v1 REST API
MIT License
33 stars 24 forks source link

Add content-type and filename params for file upload #47

Closed MrRTi closed 8 months ago

MrRTi commented 11 months ago

Currently all files are sent with type application/octet-stream. This update will add ability to pass content_type and filename as args if needed

Actual:

image
{
    "message": {
      ...
        "file": {
            ...
            "type": "application/octet-stream"
        },

Expected:

image
{
    "message": {
      ...
        "file": {
            ...
            "type": "image/jpeg"
        },
abrom commented 8 months ago

Apologies for the delay in actioning this @MrRTi

Update has been released in v0.2.4