You can do this
const handleChange: UploadProps['onChange'] = async ({ fileList, file }) => { if (file.uid !== fileList.at(-1)?.uid) return; //your code }