Event listener for file uploads or data change
Suppose I wanna run some effects on some events like generating thumbnail after file upload is done , is their any specific way of doing it?? Like some event listeners or pub sub kinda thing
2 Replies
Not at the moment. You can directly schedule work (action/mutation) from your mutation which you run after uploading the file.
You could also upload files via HTTP actions (https://docs.convex.dev/file-storage/upload-files#uploading-files-via-an-http-action) and call out to anything else you want to do alongside the upload (e.g. you could resize the image before storing it in convex storage)
Uploading and Storing Files | Convex Developer Hub
Files can be uploaded by your users and stored in Convex.