exif_imagetype(): Filename cannot be empty

浏览:1117 发布日期:2017/05/05 分类:ThinkPHP5专区
发现不只是批量上传验证,单文件上传验证也会出现这样的问题:


dump是有数据的:object(think\File)#3 (13) {
  ["error":"think\File":private] => string(0) ""
  ["filename":protected] => string(27) "C:\Windows\Temp\phpD9ED.tmp"
  ["saveName":protected] => NULL
  ["rule":protected] => string(4) "date"
  ["validate":protected] => array(0) {
  }
  ["isTest":protected] => NULL
  ["info":protected] => array(5) {
    ["name"] => string(31) "微信图片_20170419101627.jpg"
    ["type"] => string(10) "image/jpeg"
    ["tmp_name"] => string(27) "C:\Windows\Temp\phpD9ED.tmp"
    ["error"] => int(0)
    ["size"] => int(65520)
  }
  ["hash":protected] => array(0) {
  }
  ["pathName":"SplFileInfo":private] => string(27) "C:\Windows\Temp\phpD9ED.tmp"
  ["fileName":"SplFileInfo":private] => string(11) "phpD9ED.tmp"
  ["openMode":"SplFileObject":private] => string(1) "r"
  ["delimiter":"SplFileObject":private] => string(1) ","
  ["enclosure":"SplFileObject":private] => string(1) """
}
最佳答案
评论( 相关
后面还有条评论,点击查看>>