Simple to reproduce:
Write a new post and select an attachment.
Then change the attachment in favour for another attachment.
Click Post.
Result: the first choosen attachment is uploaded.
Write a new post and select an attachment.
Then change the attachment in favour for another attachment.
Click Post.
Result: the first choosen attachment is uploaded.