-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
Media upload action in Matrix plugin does not work #6534
Comments
Hey @mprasil, I have just given this a quick go and it is working for me, Can you share a workflow that reproduces this issue? |
Thanks for quick response. I think I've figured the issue. The problem seems to be that the previous HTTP request does not return FileName: I think this is because the request is effectively just I think this is still a bug in Matrix plugin and maybe this situation should be handled in some way? |
Hey @mprasil, While I feel like binary data should typically have a filename it seemed easy enough to add in a work around for this in the node, I have popped in a PR which allows you to set a filename or overwrite a filename if needed. Once reviewed it will be merged and available in a future release. |
Sometimes data is just data, not a file. HTTP Request is not the only node without file name - for example Create operation of Edit Image node also generates data without name unless you explicitly set it. PR feels like good solution. Perhaps there could be some additional logic returning some more reasonable error? The error message as it was shown in the interface would never lead me to suspect missing file name if it weren't for your message showing the field in the screen shot. Anyways, thanks for quick resolution @Joffcom. Really appreciate your help. I can live for now with my HTTP parameter workaround and can switch to setting file name in Matrix node once it is released. |
Ah I will update the error next time we touch it :) It has been reviewed and approved so should be available in the next release :) For now I guess I will mark this one as closed, have a good weekend buddy. |
Fix got released with |
Describe the bug
Using Matrix node with
Resource
set toMedia
fails with:HTTP code: 400
Stack:
Note that posting regular messages works fine with the same credentials, etc..
To Reproduce
Steps to reproduce the behavior:
Resource
set toMedia
Expected behavior
Media file uploaded to room.
Environment (please complete the following information):
n8nio/n8n:latest
The text was updated successfully, but these errors were encountered: