How Can I Let Users Paste Image Data Into An HTML Form?

I currently have an HTML form that gets a file from a user and then it will do things with that file in PHP. How can I make it so a user can paste image data using CTRL+V and it will input that image data into the HTML form? I would assume I need javascript.