I am not sure why you are having an issue.
Let me ask this. Where does the file come from? Is there a reason the user has to upload it? Not that, that is an issue, what you want to do is easy enough, I just ask as you were using an HTTP request which... to be honest doesn't make a lot of sense to me.
If you are only intending to use Copilot to get the file, and then essentially pass it to PA so you can process it and have it send an email, I would honestly say skip that, create a shared mailbox and email it there and process it, it's cheaper.
But if you want to build an autonomous agent, or a Conversational one that accepts the file and simply passes it to the Flow that is super easy
But I feel like I am missing... what you really want, versus you explaining what doesn't work.
I mean the like sentence you wrote at the top doesn't really explain what you want it to do overall, so its hard to show you how to write an Agent to do it the right way.
So how do you want it? Do you want it all to be inside of the Agent, do you want to pass it to the Flow as a File Record and have the flow process it. Note, the flow itself can either be an agent flow (built in) or a "Agent" flow, where it will call back into a prompt when its done.
But overall.. seems like based on your ask, the Agent is a waste.