There is something confusing me. When I use input[type=file] to upload images in different mobile, I get different reponse in the server.
Here is the different response:
My question is that why i am uploading the image, but I do not get the same response in the server.
<form action="#" method="post" class='c-image-change-form' enctype="multipart/form-data">
<!-- <div class="oh jiaBtn active"> -->
<div class="oh jiaBtn">
<div class="oh pa">
<p id="id_img_list">
<a href="javascript:;" class="last" id="id_last_img_wrap">
<img src="http://cache.hinabian.com/mobile/images/jia3.png" alt="添加照片" />
<input name="upfile" type="file" class="file pa" id='id_upfile' accept="image/*" />
</a>
</p>
</div>
</div>
<div class="tc imgNum"><span class="color999">最多添加<em>9</em>张照片</span></div>
</form>
array ( 'upfile' => array ( 'name' => '16460', 'type' => 'application/octet-stream', 'tmp_name' => '/tmp/phpErjuTZ', 'error' => 0, 'size' => 1627225, ), )
array ( 'upfile' => array ( 'name' => 'IMG_20151030_124751.jpg', 'type' => 'image/jpeg', 'tmp_name' => '/tmp/phpOAHfmc', 'error' => 0, 'size' => 2090488, ), )
input type=fileis HTML5?? It's been part of HTML since 1995. - Simbatype=>application/octet-streamvstype=>image/jpegthat is worrying you, or are you expecting the other properties to be the same as well? - Simba