I found this question, but the question is about how to get an image from the clip board into a wyziwyg editor!
My question is "How can I paste an image from the clipboard into a field (what field is not that big issue as long as it works)", and then sent to the server.
Jira has this functionality, so it should be possible!
Any ideas on how to do this?
Just to explain the complete workflow; I would like to have a plave to multi upload images, where the paste from clipboard also is an option. The upload will be some ajax of some sort, bt is not important in this context!
Thanks
UPDATED 25/11/2014
As Alistar say you can't do this with only javascript and html, but wait, is not so simple, depending on what you need you can try different way!
..clipboard method only works to put strings on the clipboard. For other types of data, such as URLs or images, you will need to use a more complex method...
HTML5
- http://www.w3.org/TR/clipboard-apis/
- http://www.w3.org/TR/clipboard-apis/#mandatory-data-types-1
Flex / Flash / ActionScript
- Clipboard data formats
- ActionScript 3.0 - Clipboard
JAVA
- http://java.sun.com/j2se/1.5.0/docs/api/java/awt/datatransfer/Clipboard.html
ActiveX
Clipboard ActiveX for Image Copy/Paste into Web Forms
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With