During the process of uploading a large file, I moved it to the trash can. How can I directly interrupt this upload process

I am currently encountering a problem: during the process of uploading a large file, I have moved the file that was not successfully uploaded to the trash can. These two operations have been tested to be serial (triggering the 'create Item' callback first, followed by the 'modify Item' callback), which means that the file must be uploaded before it can be moved to the recycle bin (which can also result in the file being stored in the cloud recycle bin). I want to implement: directly interrupt this upload process and then do not complete the upload. How can I achieve this? Please help me. Thank you

During the process of uploading a large file, I moved it to the trash can. How can I directly interrupt this upload process
 
 
Q