doupin2013 2014-07-29 17:44
浏览 38

提交文件并下载后,Internet Explorer会冻结

Using IE 11, I have this problem: Within a html form I upload a file, and the PHP code just sends an download file back => The Internet Explorer now hangs. It seems that this is just a new bug/behaviour, it worked without problems with IE just a week ago. I am using IE 11.0.9600.17207, Update 11.0.10 (KB 2962872). No problems with firefox or Chrome.

Here is the code to reproduce: test5.php:

<!DOCTYPE html><html><head></head>
<body>
<form action="test4.php" method="post" enctype="multipart/form-data">
    <p><input name="myfile" type="file"></p>
    <p><input type="submit" name="getUpdate" value="Get Update"></p>
</form>
</body>
</html>

test4.php:

<?php
$update = "Ylpentuelps";
$filename = "test.text";
header("HTTP/1.1 200 OK");
header("Content-Type: application/octet-stream");
header("Content-Length: ".strlen($update));
header("Content-Disposition: attachment; filename=\"".$filename."\"");
header("Content-MD5: ".base64_encode(md5($update, true)));
print($update);
?>

If I access http://<myserver>/test5.php

and upload a file, I get immediately a download file to store in Chrome and Firefox, but with IE 11 the browser hangs.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 stata安慰剂检验作图但是真实值不出现在图上
    • ¥15 c程序不知道为什么得不到结果
    • ¥40 复杂的限制性的商函数处理
    • ¥15 程序不包含适用于入口点的静态Main方法
    • ¥15 素材场景中光线烘焙后灯光失效
    • ¥15 请教一下各位,为什么我这个没有实现模拟点击
    • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
    • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
    • ¥20 有关区间dp的问题求解
    • ¥15 多电路系统共用电源的串扰问题