You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it’d be useful to have this exposed in the onUploadComplete callback, since you could do some stuff non-blocking (such as delete an old image for example) without blocking server polling response times
Describe the solution you'd like to see
.onUploadComplete(async({ file, metadata, ctx })=>{awaitdb.update(...)// delete old file non-blockingctx.waitUntil(()=>{utapi.deleteFile(metadata.oldFileKey)})})
Additional information
No response
👨👧👦 Contributing
🙋♂️ Yes, I'd be down to file a PR implementing this feature!
The text was updated successfully, but these errors were encountered:
Describe the feature you'd like to request
https://vercel.com/docs/functions/functions-api-reference#waituntil
I think it’d be useful to have this exposed in the onUploadComplete callback, since you could do some stuff non-blocking (such as delete an old image for example) without blocking server polling response times
Describe the solution you'd like to see
Additional information
No response
👨👧👦 Contributing
The text was updated successfully, but these errors were encountered: