加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

php – 我可以信任$_FILES中的文件类型吗?

发布时间:2020-12-13 18:11:17 所属栏目:PHP教程 来源:网络整理
导读:上传图片时,我可以信任$_FILES中的文件类型吗?或者我必须再次检查exif_imagetype()? 从 documentation: The mime type of the file,if the browser provided this information. An example would be “image/gif”. This mime type is however not checke
上传图片时,我可以信任$_FILES中的文件类型吗?或者我必须再次检查exif_imagetype()?
从 documentation:

The mime type of the file,if the browser provided this information. An example would be “image/gif”. This mime type is however not checked on the PHP side and therefore don’t take its value for granted.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读