Media library image loction update not working

System Information
  • Strapi Version: 4.6.0
  • Operating System: windows
  • Database: sqlite
  • Node Version: v16.18.0
  • NPM Version: 8.19.2
  • Yarn Version: 1.22.19

The location update for images not working in admin panel as well in the API.

Here If we update location and click on finish nothing happens. The image stays in the same folder.
As well as the API call.
POST http://localhost:1337/api/upload?id=38
formdata fileInfo: {“folder”: “17”}
Does not do anything.