Hello! I’ve got the S3 Multipart plugin in Uppy v3 (3.whatever latest is) communicating nicely with a Next.js API. Everything works right perfectly right now but I want to perform a request prior to the upload that, if successful, will create a row in a DB and return a key that subsequent requests should reference throughout the process. So it should look like this:
- User selects file for upload
- File metadata is sent to server
- If authorized, server inserts row into table and responds with Id
- ID is added as meta to subsequent requests
From what I can tell, the way to do this would be through a custom middleware in the client that extends the BasePlugin class. Is that correct? This seems like a pretty typical workflow, any chance there’s some simple existing plugin or support for it that doesn’t require a new middleware?
Appreciate your help! I used Uppy a few years ago on another project with great success. It’s refreshing to see you’re still killin’ it. Thanks for your work!