I still don’t believe that participant image will have full URL just because of change in imageprovider file, can I recheck again with the old file and putting debug point just after foreach line,
same thing in old file, where is it getting overwritten?
It switched the filename here if it is not new.
https://regex101.com/r/mV0iS3/1
If oldFileName is not null or empty, then add to delete list.
When is oldFileName not null or empty?
- When a new image is uploaded then don’t add it to delete
- What happens when close icon is clicked
private removeLogo(){
const columnId = this.props["column"].colId;
this.props["data"][columnId] = null;
this.props["api"].getRowNode(this.props["rowIndex"]).setDataValue('imageUpdate', columnId);
this.setState({ ...this.state, show: false,logo: "",})
}
tried a couple of things and comparing payload that didn’t work, have some other approaches which I’m going to try next, hopefully will be wrap up soon
For deleted entry both helmet and helmetId are null, then how to know if we should delete it, how to get the old file name which has to be deleted? it comes in additional key “imageUpdate”: “helmet”, how do it work for multiple images?
What about two images?