Upload to specific folder in S3

Probably an easy issue, but having a hard time figuring it out:

  • I want to upload filed to an specific folder in my S3 bucket.
  • The folder should be defined on the client side
  • I am using Dashboard + Companion to upload my files
  • It all works perfectly, but it uploads to the root folder of my bucket

I tried using meta, or headers, but nothing is working.
How can I send a value which I can access in the server? I am assuming it is something I will access via the req parameter here:

providerOptions: {
  s3: {
    getKey: (req, filename) =>
        key: "{key}",
        secret: "{secret}",
        bucket: "{bucket}",
        region: "us-east-1"

correct? But how?

Any tips would be immensely appreciated!!
Thank you,