File_upload未写入temp_dir

时间:2018-09-01 18:07:54

标签: php html file-upload

File_upload没有写入temp_dir。

我的表格是:

<form action = "" method = "POST" enctype="multipart/form-data">
										<div style="font-size:12px;font-style:italic;color:#a00000;text-align:left">Select your image file&#8230;</div>
										<div class="dbrdForm"><input type = "hidden" name="flagx" value="<?php echo $flagx; ?>"/><input type = "hidden" name="flagc" value="<?php echo $flagc; ?>"/><span class="error" style="color:red"> <?php if ($imageErr !== "") echo "<br>".$imageErr;?></span></div>
										<div class="dbrdForm" style="background-color:#fff;  width:240px; height:22px;padding:0;border-radius:10px; border: 2px inset #ddd;"><input type = "file" name = "image" id="image" /></div>
										<div class="dbrdForm" style="padding-left:130px"><input type = "submit" name="Upload" value="Upload"  />&nbsp;&nbsp;<input type = "submit" name = "Clear" value="Clear" />	</div>
									</form>

$ _ FILES具有所有预期数据。 var_dump是:

$ Files Dump = array(1) { ["image"]=> array(5) { ["name"]=> string(10) "extrip.jpg" ["type"]=> string(10) "image/jpeg" ["tmp_name"]=> string(43) "/var/www/clients/client1/web9/tmp/phpoHGmHp" ["error"]=> int(0) ["size"]=> int(31884) } }

会话变量将被写入temp_dir,而不是映像文件。错误日志中未报告任何错误。

upload_files = ON已在php.ini中设置

0 个答案:

没有答案