From what I see there, there's a few issues:
- in the request to upload the file, you're passing an empty body. This should create the file, but as it's empty, the server may delete it, I'm not sure about it.
- as you can't access it, that's a sign that the upload is incorrect
- in the last action, "Content-Type": "conte@{items('Apply_to_each_2')?['contentType']}" is incorrect. you should just be sending @items('Apply_to_each_2')?['contentType'], unless this is something specific for PowerAutomate.
- not knowing how you're getting the file, please ensure that the ContentBytes does contain what you need. It seems that it's not the correct field.
Lastly, this article was designed for Logic Apps, not PowerAutomate. There are some slight differences, although I believe the connector is shared.