【发布时间】:2011-10-15 00:34:21
【问题描述】:
我正在尝试使用 PHP 进行受限文件上传。
我用过
if (($_FILES["file"]["type"] == "application/dbase")
||($_FILES["file"]["type"] == "application/dbf")
||($_FILES["file"]["type"] == "application/x-dbase")
||($_FILES["file"]["type"] == "application/x-dbf")
||($_FILES["file"]["type"] == "zz-application/zz-winassoc-dbf"))
对于我来说,.dbf(即 Microsoft Visual FoxPro 表类型)文件不起作用。请向我建议我应该为 .dbf 的内容类型添加什么内容。
【问题讨论】:
-
这里有类似的,我没有回答的问题。 stackoverflow.com/questions/6845866/…
-
你试过
print_r($_FILES["file"]["type"]);吗?
标签: php