@powaya ,
The file is actually in OneDrive (but that is probably not relevant) with a List attachment or are your talking about a SharePoint Library here?
An Attachment Control (which is the only way in Power Apps to add or delete attachments) does not have a rename function. Also you did not give it an initial name - it would have taken the name of the file uploaded. Power Automate can add or delete attachments, but not rename them.
If this is a Library, you can do it in a Grid View in SharePoint, but any attempt to Patch it from Power Apps states the field is read-only.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps