Write javascript code to interact with Gmail compose panel

Avg Bid (USD)
Project Budget (USD)
$250 - $750

Project Description:
I need javascript code, which can run on a Chrome plugin or just on the chrome console, which uploads a BLOB (or a file) to an open compose message panel.
The upload action should result at the same result as a manual upload action - you should see the file in the compose panel.
2 possible ways I know of doing it -
1. simulate drag&drop event with a BLOB in the compose panel itself (Gmail lets you upload a file using drag&drop).
2. make an ajax call to the upload service

a third alternative is more than welcome.

Skills required:
Google Chrome, Javascript
Additional Files: Screen+Shot+2013-05-16+at+10.58.09+AM.png
About the employer:
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.

$ 526
in 1 days
Hire cahbou
$ 526
in 6 days
Hire bdovhan
$ 555
in 3 days
$ 733
in 25 days
$ 670
in 25 days
$ 526
in 5 days