0

我正在使用 valums 很棒的上传脚本。它适用于我测试的所有地方,除了 IE9,微调器永远挂起并且永不停止。我已经广泛搜索并找到了从更新的 JS 文件到简单地将内容类型 text/html 添加到 PHP 文件的答案,但没有任何效果。

有谁知道可以做什么?

谢谢

4

1 回答 1

1

OMG - I fixed it!! Heres the answer:

In the qqUploadedFileXhr.php, there is a save($path) function. In it, there is another function called getName(). Replace it with the following:

function getName() {
if (isset($_GET['qqfile'])) {
    return $_GET['qqfile'];
} elseif (isset($_FILES['qqfile'])) {
    return $_FILES['qqfile']['name'];
}
}

IE9 uses $_FILES when uploading, not $_GET, so we need to check for that. So if $_FILES is set, we return the name of the file. Simple, works. Took me forever to figure out, so hopefully this helps you!

于 2012-07-28T23:07:04.120 回答