ficlass在非IE浏览器中上传jpg文件的问题

在ficlass1.1.2中photo.php

 $is_image=$_FILES[‘loadfile’][‘type’] == ‘image/bmp’ || $_FILES[‘loadfile’][‘type’] == ‘image/gif’ ||  $_FILES[‘loadfile’][‘type’] == ‘image/png’ || $_FILES[‘loadfile’][‘type’] == "image/pjpeg" ;

替换成

 $is_image=$_FILES[‘loadfile’][‘type’] == ‘image/bmp’ || $_FILES[‘loadfile’][‘type’] == ‘image/gif’ ||  $_FILES[‘loadfile’][‘type’] == ‘image/png’ || $_FILES[‘loadfile’][‘type’] == "image/pjpeg" || $_FILES[‘loadfile’][‘type’] == "image/jpeg";

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注