我不希望在提交图片时页面被重新加载。在图片被发布到php页面后,它被存储为MYSQL数据库中的一个BLOB。){ // Check if upload property exists
myXhr.upload.addEventListener('progress',progressHandlingFunction, false); // For handling the
在页面重新加载时,我必须显示消息“文件上传正在进行中,您的上传将丢失在重新加载!”。我正在使用下面的代码,但警告始终是,“您所做的更改可能无法保存!”在chrome浏览器中。window.onbeforeunload = function() {
return 'File upload in progress, your upload will be lost on