How to save user files to their specific folders in strapi 4

System Information
  • Strapi Version: 4.3.6
  • Operating System: windows 10
  • Database: mysql
  • Node Version: v16.16.0
  • NPM Version:
  • Yarn Version: 1.22.15

i have created a collection in strapi by the name documents. in which there is user related data like user name and the document he uploaded.

I used postman api to create the document row in the collection.
http://localhost:1337/api/documents by passing
body form-data: (with two keys data and files and selecting the file from the local machine)
data: {“username”: “testuser”, “documentType”:“pdf”}
files.documentFile : Doc.pdf

This creates a new entry in the api/documents collection type with the document as a media type.
And i can also see the document in the media library.
However, how can i see the document in the media library within the username folder. As all the media i created for the document collection is unorganized in the media library.

Thank you

Can anybody help please

buzz!!! any updates please