Repository navigation
send message with multiple attachment #665
Replies: 5 comments 3 replies
|
How do you set the command? Try |
|
I am having the same issue. It doesn't always choose the first attachment; when I send three attachments, and vary the order, it always sends the same one attachment. I have done some debugging to determine that everything is working well (all three attachments make it to sendMessage() in Manager.java. Unfortunately I don't have the skills to determine what happens after that. In AttachmentUtils.java, there is a createAttachment() method that uses a nonstandard (deprecated?) protocol to send to the Signal servers. It uses a resumableUploadSpec, for example, which exists nowhere in the current API so far as I can tell. So at that point I'm stumped. I'm using signal-cli on Fedora 34, openjdk-11.0.9-5 |
|
More information: The same thing happens when I use the "dbus-send" (raw) command: dbus-send --session --type=method_call --print-reply --dest="org.asamk.Signal" /org/asamk/Signal org.asamk.Signal.sendMessage string:'Here is a message' array:string:'file1.pdf','file2.jpeg','file3.png' string:'+33000000000' |
|
It appears that Signal processes images differently from other attachments. Specifically, for an image, the name is removed and replaced by an arbitrary string of characters, with no indication of MIME type or former file extension (.JPG, .PNG, etc.) Other attachments, however, are sent along with their MIME type and original filename intact. It seems as if you can't mix and match these in the same send command. |
|
Well, the desktop and mobile clients do not seem to have a problem regardless whether the MIME type is stripped or not. I come here from this issue in the REST API wrapper for this client. It appears that regardless of the files that are sent, all but the first attachment are being ignored. I tried multiple TXT files (so no image file at all), PDFs etc. It was suggested that Signal might have some issues with sending audio files but since I didn't test that and given that all other types I have tested so far are affected, I would say that it doesn't really matter. The only thing that appears to be working is sending multiple images in one go. |
Uh oh!
There was an error while loading. Please reload this page.
i am having issue with send message with multiple attachment.
only first attachment is taken. rest not coming to signal
All reactions