UT: Issues with completion callback in dev
Everything is working fine in production, but I'm unable to get the onComplete callbacks to work properly in dev.
I think I'm getting close, but I got the following error in console. I reached out to support via email, but I linked this thread since its a bit easier to communicate and share code via discord opposed to email.
Error:
Something went wrong. Please contact UploadThing and provide the following cause: "TypeError: records[0].serverData is undefined"
Client side:
core:
1 Reply
Initially the callback in dev wasn't happening at all. I got it to happen at all by making the following changes to
route:
Was able to get it to run using the following. Not ideal and I'm sure there is a better solution: