You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Unable to Paste Images in Facebook Chat on Safari

When I right-click a photo on Chrome and hit "copy image" I am able to paste it in Facebook chat.

I cannot do the same for Safari, it automatically pastes the link rather than the image.


The real issue for me is when I take a screenshot and send it to the clipboard, cmd+v does nothing on Safari, whereas on Chrome it uploads.


I really like Safari and just started using it to avoid the memory issues associated with Chrome, but this is a deal breaker for me. Does anyone know why this happens or how to fix it?

Thanks!

MacBook Pro (15-inch Mid 2012), macOS Sierra (10.12), null

Posted on Oct 30, 2016 11:35 AM

Reply
6 replies

Nov 2, 2016 12:41 PM in response to Eric Root

It still does not work, and yes the cursor is in the desired location. When I right click and hit "copy image" and paste, it pastes the link to the image, whereas in Chrome, it would paste the image.


There seems to be a more general issue/difference between Safari and Chrome so that one allows the pasting of images on the clipboard and the other does not. If it helps, this issue was also (sort of) documented in this Reddit thread: https://www.reddit.com/r/mac/comments/3ompay/cant_paste_images_into_facebook_cha t_on_safari/?st=iv1bn4zh&sh=0772361d


This behavior is not unique to Facebook, but also occurs in gmail - another place where I would expect that pasting an image would work. It is a little bit different on gmail though - the same thing happens when copying a screenshot to the keyboard and pasting (nothing), but when I right click an image and select "copy image" then paste, an odd box comes up that says imgres.jpg, but not the image. The image does not show up if I were to send the email too.


So it isn't Facebook specific but rather some feature of Safari that does not allow the copy pasting of images into a text box. I can't seem to edit the title to reflect that, unfortunately. The question might get more traffic if I could.


Thanks so far!

Nov 2, 2016 12:58 PM in response to Eric Root

I did a little more searching, and it seems like this used to be an issue in Firefox as well. Here is a relevant stackexchange post: http://stackoverflow.com/questions/2176861/javascript-get-clipboard-data-on-past e-event-cross-browser/6804718#6804718


Interestingly enough, copying a screenshot to the clipboard works on this website: http://codebits.glennjones.net/editing/getclipboarddata.htm but right-clicking an image and hitting copy then pasting results in a box with a blue question mark.


Is there a bug in the clipboard operations? Safari seems to only selectively get image data on the clipboard during a paste event. I am not entirely familiar with Javascript, but the first answer in the stackexchange post I linked to gave a 'hacky' workaround for this -- is this something I can implement event handlers in Safari on my own?


Here is the dev page for what I think are the relevant Javascript clipboard operations:

https://developer.apple.com/library/content/documentation/AppleApplications/Conc eptual/SafariJSProgTopics/CopyAndPaste.h…

Unable to Paste Images in Facebook Chat on Safari

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.