Uploadthing onUploadAborted not working?

I was wondering why I got an error when trying to use onUploadAborted inside my useUploadThing hook it says it doesnt exist tried to fix it but couldnt, my uploadthing is also up to date
No description
Solution:
i had this same issue. you can read below this message to see what conversation took place: https://discord.com/channels/966627436387266600/1102510616326967306/1351067059844546561 the summary is that this onUploadAborted function isn't exposed in the hook. the docs havn't been updated it seems like. you have 2 solutions: ...
Jump to solution
2 Replies
needless
needlessOP4d ago
was trying to use this
No description
Solution
webdevkaleem
webdevkaleem3d ago
i had this same issue. you can read below this message to see what conversation took place: https://discord.com/channels/966627436387266600/1102510616326967306/1351067059844546561 the summary is that this onUploadAborted function isn't exposed in the hook. the docs havn't been updated it seems like. you have 2 solutions: (1) attach a .catch to the startUpload and that will run whenever the upload is aborted (2) "pass the signal and do your stuff in signal.addEventListener(”abort”, callback)" - julius

Did you find this page helpful?