Home  >  Article  >  Backend Development  >  PHP表单上传的一个有关问题

PHP表单上传的一个有关问题

WBOY
WBOYOriginal
2016-06-13 13:33:00988browse

PHP表单上传的一个问题
我做了个PHP上传的小接口,做完发现不能上传ZIP格式文件,我怀疑是不是它是不是把ZIP文件当成二进制进行解析了

------解决方案--------------------
不能上传zip文件? 那么 $_FILES['表单控件Name']['error']会有错误提示代码
一般是文件大小超过限制,不是二进制什么的问题
http://php.net/manual/zh/features.file-upload.errors.php
------解决方案--------------------
1、你的接收程序阻止了这种文件上传
2、你允许的最大上传大小不足以容纳上传的文件

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn