【发布时间】:2012-01-15 10:34:11
【问题描述】:
当我回显 docx 文件的文件类型时,它似乎被切断了。有谁知道我可能错在哪里?
$strInputFile = "test.docx;
回显 $file_type = $_FILES[$strInputFile]["type"]; // 给出 application/vnd.openxmlformats-officedocument.word
谢谢
【问题讨论】:
-
这对我来说看起来是正确的格式......
-
对于任何好奇它应该是什么的人(比如我自己),它是
application/vnd.openxmlformats-officedocument.wordprocessingml.document -
由于某种原因,它被截断为 50 个字符。奇怪...
-
它甚至没有从数据库中被拉出来被切断.. :(
标签: php file file-upload mime-types