make sure Attachment passes metadata to File when building.
File#rename! doesn't retrieve the renamed object anymore (costly when using remote storage) but merges the new UID into the existing metadata.