Skip to content

Change to media download endpoint? #140

@crosbyh

Description

@crosbyh

Hello,

I am trying to use the flow that can download/save files from either encrypted or unencrypted rooms.

To download from unencrypted rooms, I find I need to insert this function node to change the media download endpoint:

msg.url = msg.url.replace(
    '/_matrix/media/v3/download/',
    '/_matrix/client/v1/media/download/'
);

return msg;

For some reason, the v3 endpoint returns 404.
I also need to add my BEARER token to the http request node.

The portion of the workflow to download from encrypted rooms doesn't seem to function properly.

This seems to be supported by the documentation here:

https://matrix.org/docs/spec-guides/authed-media-servers/

Does this necessitate an update to the Decrypt node? Would it be possible to inject a fix locally using a function node?

Thank you for any assistance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions