Sorry - just now saw your response…
What does your server side code look like? Because the S3 options section of the Companion documentation indicates you simply prepend the filename with the folder name (the same way I do in the example I gave) - they suggest you can use data from the “req” object, but you can use anything - “test/” in your case:
"The req parameter can be used to upload to a user-specific folder in your bucket, for example:
app.use(authenticationMiddleware)
app.use(uppy.app({
s3: {
getKey: (req, filename, metadata) => `${req.user.id}/${filename}`,
/* auth options */
}
}))
The default implementation returns the filename, so all files will be uploaded to the root of the bucket as their original file name.
({
getKey: (req, filename, metadata) => filename
})
"
So:
({
getKey: (req, filename, metadata) => "test/" + filename
})
should work - I don’t think you have to worry about manually passing it to Companion. Does it work?