How To Add Popconfirm For Removefile An Image File In Ant-d Upload
I'm using Ant-d Upload for uploading files through local system and on clicking on delete icon on preview image of file the image file is deleted.I want to add a pop confirm so I t
Solution 1:
Luckily, I got a solution for this.I know someone might help me in this huge community I thought it might be useful for anyone
onGalleryFileRemove = (file)=>{
const {confirm} = Modal
return new Promise((resolve, reject) => {
confirm({
title: 'Are you sure you want to Delete ?',
onOk: () => {
resolve(true)
<!---- onRemoveFunctionality here ---->
},
onCancel: () =>{
reject(true)
}
})
})
}
Post a Comment for "How To Add Popconfirm For Removefile An Image File In Ant-d Upload"