手机版移动应用中未上传的图片

时间:2015-10-20 09:13:03

标签: android html css image phonegap-build

我正在构建手机间隙网络应用。我必须在nodejs中使用multipart / form-data和backend从客户端上传图像。 这段代码适用于某些手机,但不适用于某些手机,特别是三星Tab 4,HUAWEI。(在这些设备上打开时,点击没有任何反应,即使相同的代码在其他设备上运行良好)

<form id = "uploadForm" enctype = "multipart/form-data" method = "post">
         <!--- <img src="../Images/gallery_image.PNG" width="68px" height="auto" id="image_1"/> -->
         <div id="image_1" style="    position: relative;
    width: 68px;
    height: auto;
    background-image: url(../Images/gallery_image.PNG);
    display: block;
    left: 9%;
    bottom: 2px;
    background-size: cover;">
          <input type="file" id="imgInp"  name="userPhoto" size="60" accept="image/jpeg, image/png, image/jpg" style="    width: 60px;
    height: 67px;    opacity: 0;"/><br />
          </div>
          <input type="submit" value="Gallery" name="submit" id="submit_gallery" class="myButton_00" style="right: 9%;position: relative;top:5px;">

          </form>

0 个答案:

没有答案