If you upload files to the /media/:id endpoint then the image for the attachment is replaced. Otherwise the previous behavior of updating the attachment post occurs.