if (($_FILES["file"]["type"] != "application/octet-stream"))//file is not an ipa
{
echo "File is not an ipa\n";
}
else if ($_FILES["file"]["size"] > 1024 * 1024 * 800)//ipa file size limit to 800M
改为
// if (($_FILES["file"]["type"] != "application/octet-stream"))//file is not an ipa
// {
// echo "File is not an ipa\n";
// }
// else
if ($_FILES["file"]["size"] > 1024 * 1024 * 800)//ipa file size limit to 800M
{
echo "File should not be larger than 800M\n";
}
也就是说把第一个判断注释掉
Oct 28, 2012修改:
可能是服务器有附件大小限制:
举例:mac自带的apache
打开terminal
sudo vim /etc/php.ini
vim中 /upload_max_filesize回车,看看大小是多少M
再/post_max_size回车,看看大小是多少M
因为你的ipa大小2.9M,所以这两个值可以都设10M再试试看