Prerequisite: You are a teacher or, as a parent / student, the corresponding chat is set to "Open".
For the file you want, click on the three dots to the right of the file name. As a parent / student, you can only rename files that you uploaded yourself.
You can now delete the file name by removing the old name and inserting the new name.
Now confirm on "ok".