We already did this for ExtJS4, just copying from there
Attach a file by drag & drop or click to upload