Fixed [2.2.7] Image Copy/Paste from Clipboard Stopped Working

spk100

Member
Affected version
2.2.7
Before upgrading to 2.2.7, whenever I copied images from WhatsApp Web and pasted it to a new post, it would work.

But now, it does not work. I only get a broken image icon.

Nothing changed at the server level.
 
I can confirm this. In some cases it seems to be just inserting the hotlinked image rather than processing it as an upload from the clipboard data. The image being broken might be something related to the URL being inferred from WhatsApp web which may be protected from being loaded outside of the app.
 
Also, had reports from Safari users on Macs - "Just write a few sentences/short paragraphs with blank space (new lines) between them. Then try to drag a different photo into each of the blank spaces. They all get added to the top of the post with the last dragged photo at the top."

Apparently it didn't happen on v2.2.6
 
1632087326232.webp

I assume we are running 2.2.7 here on xenforo.com? At least copy-and-paste from Snagit works still - I use that a lot!
 
This was reported by our users, too. I can reliably reproduce this issue in our forum and here on xenforo.com using Chrome Stable 94.0.4606.71.
 
y3PEkJadTMvpAFBPNm1-kuIRB8buTGlWsrxjfUplC_LHtkx36Z0C6Ljr03Oh8NGooXfQ_4BEHfgbIiOntjA57MdjbUzqD4qpYT6QgIT0j2O0lGHYu5tewOIoYETsN0_3q_nGIiUNDSQbQz0IgKhDBR5wvSJiRo5Q1yI5-r8_flGJunv1qaz9OQarcwRaAFe0W9UwHHE59c4x6XjdjmJkP9aq0R_A0_bfBuPgJWJbTYEgSPBvqwcpEVvE-zUUXpJOW4tz4Qzo7wijP5VEo0ZOiW5HQk2e8t2pYs37ArJtE58RHV7ZWn5WrByGQFgx0VmYODsls6062OO22aWvnRQGqO6pydlSdAt0_n26x5pDyD3cDcytvW1yH8IGg1YK-UwfSpDHz_FZYCBAk2OYbCVB559NZrAIkw9EghajjZmfF3l-VwLP10vmsDsM7HxMAWvxd-krqO6Y46BHkloPcAwaUNogG2tyz3mUp-JQb7s_ZrRV4xpR-TwvPpMJuN3fW9zI8PajQllwZ1RU4IjPh3EWWT5pm9ZJ89p-aZ0oxkXwqXCOdGyN2VGIPTxbkoH_LR2aKvwqEuuQOfGt1NLqvsAWFNxpHSW75Y2e4KUQ6dJ_qp62APLVjVUb21oEPAFyoTxNiczGhZH98CTSSr-cINmqV9pXsyMEXQLEeqXtR0y_0_ickEw8MOcSIQC2W_s2uMOd4WgJfLFwS1lAHiIZwQ86dwaC=w733-h977-no


That paste ^^^ is an attempt to embed the link with the
Code:
[IMG]http://...[/IMG]
tags from my google photos.
This is on a chromebox. I've confirmed it in chrome and edge on my Win 10 machine. Problem is, for the author, they can see the pic, so it appears that it worked. I've confirmed this from other sites, and if it is in a public space, the tag works. Note that xenforo has the ability to stop other sites from sourcing images in the ACP/Image and link proxy/secret key

if i look at bb code

Code:
[IMG]https://lh3.googleusercontent.com/y3PEkJadTMvpAFBPNm1-kuIRB8buTGlWsrxjfUplC_LHtkx36Z0C6Ljr03Oh8NGooXfQ_4BEHfgbIiOntjA57MdjbUzqD4qpYT6QgIT0j2O0lGHYu5tewOIoYETsN0_3q_nGIiUNDSQbQz0IgKhDBR5wvSJiRo5Q1yI5-r8_flGJunv1qaz9OQarcwRaAFe0W9UwHHE59c4x6XjdjmJkP9aq0R_A0_bfBuPgJWJbTYEgSPBvqwcpEVvE-zUUXpJOW4tz4Qzo7wijP5VEo0ZOiW5HQk2e8t2pYs37ArJtE58RHV7ZWn5WrByGQFgx0VmYODsls6062OO22aWvnRQGqO6pydlSdAt0_n26x5pDyD3cDcytvW1yH8IGg1YK-UwfSpDHz_FZYCBAk2OYbCVB559NZrAIkw9EghajjZmfF3l-VwLP10vmsDsM7HxMAWvxd-krqO6Y46BHkloPcAwaUNogG2tyz3mUp-JQb7s_ZrRV4xpR-TwvPpMJuN3fW9zI8PajQllwZ1RU4IjPh3EWWT5pm9ZJ89p-aZ0oxkXwqXCOdGyN2VGIPTxbkoH_LR2aKvwqEuuQOfGt1NLqvsAWFNxpHSW75Y2e4KUQ6dJ_qp62APLVjVUb21oEPAFyoTxNiczGhZH98CTSSr-cINmqV9pXsyMEXQLEeqXtR0y_0_ickEw8MOcSIQC2W_s2uMOd4WgJfLFwS1lAHiIZwQ86dwaC=w733-h977-no?authuser=0[/IMG]

Previously it would paste/upload the image from the clipboard then "attach" it from the gallery.

-----------------------------------

<img src="blob:chrome-untrusted://media-app/03c991d6-d363-4f97-b86c-0d20c176769c" alt="IMG_0662.JPG"/>

If i "copy image" from the chrome viewer, it pastes the above line, but does not grab the "blob"
I'm sure the blob is going to the clipboard, because it takes a couple seconds after the copy for the mouse to respond to a click.

------------------------------------
gotta be in the javascript ?
Beyond my talent*time product.

if i can research any behaviour, i'd be glad to help.
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.2.8).

Change log:
Patch a regression in Froala which caused images inside clipboard data to no longer be uploaded as expected.
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom