0👍
in my case i use localstorage then put the value of image name.
then you can attach the file name with localstorage get item. if you want you can remove item after resetting fields .
handleAttachmentChanges: (event) =>{
let file = event.attachment.file.name;
localStorage.setItem('file-rich', file);
console.log(file);
console.log(event);
}
Source:stackexchange.com