vimb icon indicating copy to clipboard operation
vimb copied to clipboard

Whatsapp web: cannot paste image from the clipboard

Open Kazhuu opened this issue 5 years ago • 3 comments

Steps to reproduce

Go to whatsapp web app and login. Then have screen capture on the clipboard taken with flameshot for example. Try to paste it to the chat.

Expected behaviour

Window should come up asking do you want to paste the image.

Actual behaviour

No popup comes up.

I'm using the latest trunk build. Text can be pasted to the chat by pressing C-V and then C-V again. But same doesn't happen with image for some reason. Any clue what prevents this? I checked console for JS errors too but none came up.

Kazhuu avatar Nov 18 '20 13:11 Kazhuu

@Kazhuu I can reproduce this by putting an image on clipboard xclip -selection clipboard -t image/png -i test.png and pasting it into https://www.textbox.io/. This seems not to work with webkit, but I'm not sure how this feature is called. But ob https://jsfiddle.net/madkdzre/ I can paste the image - so it seems to work at least in some cases.

fanglingsu avatar Nov 20 '20 23:11 fanglingsu

Yeah I get the same results as you above. I'm not so familiar with webkit or this feature what it's called. Hopefully someone can enlighten us with their knowledge what is the problem. I might look into this if I have time in the future. Thanks for the help!

Kazhuu avatar Nov 25 '20 13:11 Kazhuu

This issue has been automatically marked as stale because it has not had activity within the last 60 days.

stale[bot] avatar Jul 21 '21 04:07 stale[bot]