To upload a file in DatoCMS, first you need to obtain an upload permission through this API endpoint. The response will contain the S3 URL where you will be able to upload the file with a direct PUT request.
"upload_request"
The URL to use to upload the file with a direct PUT request
Specifies the additional headers that need to be included in the direct PUT upload request