<html>
<body>
<form action="/page.php" method="post" enctype="multipart/form-data" >
<input type="file" name="photo" />
<br /><br /><br /><br /><br />
<input type="submit" value="verder" />
</form>
</body>
</html>
页面.php
error_log(__LINE__);
foreach ($_FILES as $key => $image) {
$tmp_name = $image['tmp_name'];
$rand = rand(10000, 99999);
$name = 'id_scan_'.$dossier_id.'_'.substr(md5($rand), 17, 5);
$dimensions['max_width'] = '800';
$dimensions['max_height'] = '800';
$image_type = strrchr($image["name"], ".");
Helper_Image::image_scale_and_save($tmp_name, $image_type, "$uploads_dir/$dossier_id/$name", $dimensions);
$post_to_save[$key] = $name. $image_type;
}
这只是上传图片的简单表格。在 IE9 中没有任何反应。输入框被清空,表单不提交。我是否必须寻找服务器设置或其他东西?