【发布时间】:2015-05-18 18:12:02
【问题描述】:
我有 1 种形式的 2 个输入文件。当我尝试发布带有显示其属性的图像 print_r 或 var_dump 时。
但是当我尝试使用 swf print_r 或 var_dump 发帖时说空且无法发帖。
那么我怎样才能上传 swf 文件呢?谢谢。
echo var_dump($_FILES);
if($_FILES["oyun_yolu_file"]["type"] == "application/x-shockwave-flash")
{
echo "aha";
echo var_dump($_FILES["oyun_yolu_file"]);
}
我已经上传了代码,但我的问题是我无法上传 swf 文件,我可以上传普通文件,如 txt、图片等。
<form action="" method="post" enctype="multipart/form-data">
<table>
<tr>
<td>Resim Yolu</td>
<td>
<input type="text" name="resim_yolu" class="resim_yolu" style="width:260px !important" />
<span id="kirmizi" style="padding:0px 10px">yada</span>
<input type="file" name="resim_yolu_file" class="resim_yolu_file" />
</td>
</tr>
<tr>
<td>Oyun Yolu</td>
<td>
<input type="text" name="oyun_yolu" class="oyun_yolu" style="width:260px !important" />
<span id="kirmizi" style="padding:0px 10px">yada</span>
<input type="file" name="oyun_yolu_file" class="oyun_yolu_file" />
</td>
</tr>
</table>
</form>
【问题讨论】:
-
到目前为止您尝试了什么?显示代码。
-
@QaisarSatti 我正在等待你的评论
-
也需要表单html代码
-
@QaisarSatti 我添加了
-
我自己测试了这段代码,添加提交按钮没问题