**Describe the bug** Editing path only can change folder name **Expected behavior** Editing path can change both folder name and file name **To Reproduce** Steps to reproduce the behavior: 1. Upload a file to course materials, e.g., x.pdf 2. Click the pencil next to the course material file to edit the course material. 3. We can change path to "foo/y.pdf" 4. See error **Configuration** - OS: Windows - Browser: Edge **Screenshots** <!-- If applicable, add screenshots to help explain your problem. --> https://github.com/user-attachments/assets/3883ccf4-db87-457f-b1d3-40179d459850