我正在尝试将图片发布到该网站。想知道为什么这不起作用?网址为imggmi.com
document.querySelector("input[type=file]").addEventListener("click", function(event){
event.preventDefault();
}
var inp = document.getElementById('file');
const dT = new ClipboardEvent('').clipboardData || new DataTransfer();
dT.items.add(new File(['/Users/mbp/Downloads/panda.jpg'], 'panda.jpg'));
inp.files = dT.files;
document.getElementById('upload_butt').click()