I’m looking to integrate Uppy into a project for direct-to-S3 file uploads.It appears the S3 plugin was recently completely rewritten with new backend hooks, which confuses things a bit, and I haven’t been able to answer my question based on looking at the new demo code.
I would like to use the STS-based approach but limit the federation token that is fetched by the backend to a specific S3 object key. To do this, I need to:
- Pass the name of the file upload from Uppy to the backend so it can construct the appropriate S3 object key based on some backend logic.
- Pass the full S3 object key back to Uppy and have it use that key for the upload.
I can’t see where that information can be communicated in the new getCredentials hook, or where else it can be passed along. Any help is greatly appreciated, thanks.