Closed Shah-ali closed 5 years ago
We have to clear the file input once the image is selected
Any hint please. how to clear file input?
I think, I have fixed it. In OpenAssets.js
if (accept) {
const uploadEl = amContainer.querySelector(
`input#${config.stylePrefix}uploadFile`
);
uploadEl && uploadEl.setAttribute('accept', accept);
uploadEl.value = "";
}
@artf : I really want to thank you for your help.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Ajax call which is uploading image file in assests folder
It's working fine to add an image from the local.
But in another scenario, It's not working. Please have a look Drag image block Select an image Delete that image Add the same image again on same the place, "uploadFile" function is not calling It's not allowing me to upload same image on same position after delete that image