[英]wrong JPG from IPhone5
I can't upload JPG file using the PHP upload form on my site. 我无法使用网站上的PHP上传表单上传JPG文件。 File has created with IPhone 5 camera. 文件已使用iPhone 5相机创建。 Sample file is here: http://yadi.sk/d/N3UrAorBEuM8z 示例文件在这里:http: //yadi.sk/d/N3UrAorBEuM8z
var_dump( $_FILES ) say: array(1)
{
["image"]=> array(5) { ["name"]=> string(15)
"IMG_0266_i.JPG" ["type"]=> string(0) ""
["tmp_name"]=> string(0) "" ["error"]=> int(1) ["size"]=> int(0)
} }
I don't understand what's wrong with this file? 我不明白这个文件怎么了? Why size=0
and type=0
? 为什么size=0
和type=0
?
No problems with some other JPG pictures. 其他一些JPG图片没有问题。 Only from Iphone. 仅来自Iphone。 Plz help! 请帮忙!
addon: no problem with this file after resized or rotated in XnView
or Photoshop
. 插件:在XnView
或Photoshop
调整大小或旋转后,此文件没有问题。
any ideas? 有任何想法吗? how to upload this files? 如何上传此文件?
当您从iPhone5捕获任何图像时,它将以.PNG格式保存图像
Issue solved, my host Provider set upload_max_filesize =2 Mb. 问题已解决,我的主机提供商设置了upload_max_filesize = 2 Mb。 I can't change this. 我不能改变这个。 Thnx this post File upload PHP JPG issues Thnx此帖文件上传PHP JPG问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.