// kamal testing code--startconst observer = new MutationObserver(function(mutations, observer) {
const fileInput = document.getElementById("photoimg");
if (fileInput) {
fileInput.setAttribute("accept", "image/*,video/*");
fileInput.setAttribute("multiple", "");
console.log("✅ accept updated to:", fileInput.getAttribute("accept"));
observer.disconnect(); // Stop once found
}
});observer.observe(document.body, {
childList: true,
subtree: true
});function updateAccept() {
const fileInput = document.getElementById("photoimg");
if (fileInput) {
fileInput.setAttribute("accept", "image/*,video/*");
fileInput.setAttribute("multiple", "");
console.log("✅ accept updated to:", fileInput.getAttribute("accept"));
clearInterval(interval); // Stop checking
}
}const interval = setInterval(updateAccept, 500); // Check every 500ms
Are you really wants to delete