This isn't necessarily a bug - but say I upload a file, but accidentally double-click the wrong file to upload. If I click the "cancel" button, the file is still uploaded.
the immediate uploading without the user needing to confirm is not a good thing.
As you say, accidentally double-clicking and the file gets uploaded immediately. This will make users nervous when they upload the wrong image.......