Hey guys,
I am creating a record on Salesforce and then trying to upload an attachment related to that record ID. However, when I open the attached document on Salesforce I have the following issue:

This is the flow I am using:
1.Create record
2. Encode the attachment in Base64
3. Create another record in attachments and add the record ID previously created

Code is Base64 Compose: string(base64(item()?['contentBytes']))

Is there any alternative to do this or something I could change?