Upload-aws-s3 same folder structure as media library

I already implement upload image to S3 by the official upload-aws-s3. But all media are uploaded to root of the bucket. How Can I make it upload to S3 with the same folder structure in Strapi Media Library ?

This topic has been created from a Discord post (1252849845207695441) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord