Question

I am new to web development. I was looking at Snaggy's feature where you can directly paste an image and it gets uploaded to Snaggy.

I did a little research on StackOverflow and I found that it is near-impossible to read the data from clipboard.

As a newbie, please help me understand how it can be achieved. :)

My references for research:
Get current clipboard content?
Read the client clipboard with jQuery?

Was it helpful?

Solution

Snaggy is using a java applet to access the clipboard. This technique doesn't work without the Java extension installed and enabled in the browser.

There is no way to read from a visitor's clipboard using JavaScript in any popular browser.

OTHER TIPS

I remember there was a possibility to read the clipboard content in Adobe Flash. I'm not very familiar with Flash programming, so I can't really explain how to achieve copy/paste automation, but there it is described how to read/write clipboard data using ActionScript3.0. There is also way using a library, described in this blog.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top