문제

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?

도움이 되었습니까?

해결책

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.

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top