Creates attachments.
Returns the file with the bytes bytes and the media type mediaType.
Returns the file at url, with the media type mediaType.