The upload file in element fails to be uploaded after it is uploaded to the server. How to close the uploaded file manually?

how can I close the uploaded file manually after the upload file in element fails to be uploaded to the server?
I think it should be written in a failed callback function, but I don"t know how to close it manually

clipboard.png

Hook function for failed upload:
uploadError: function (err, file, fileList) {
}

Mar.03,2021

is there anything left in the list after the upload failed

Menu