How can I access pasted file in webkit browsers? (as Google Chrome) How can I access pasted file in webkit browsers? (as Google Chrome) google-chrome google-chrome

How can I access pasted file in webkit browsers? (as Google Chrome)


Our magic sauce is just:

$('body').bind('paste', handlepaste);

Where handlepaste is very similar to yours, so should work for you just fine for Chrome.

Unfortunately the above completely fails for FF, and we are loath to add a contenteditable anywhere (in particular given that it has to be in focus for this to work and we don't want to steal the focus).