javascript – PHP picture add works high quality in each state of affairs besides with iPhone digital camera

[ad_1]

I’m making an attempt to complete a web site during which I’m permitting picture uploads. I’ve my iPhone hooked to me pc and am viewing the web site on my iPhone. The picture add works high quality, besides, after I contact “Take a Picture” within the selections given. This causes the positioning to crash, and it simply exits and goes again to the icons display.

This is the enter code:

<enter id="uploadStatus" sort="file" title="photograph" settle for="picture/*" onchange="loadFileStatus(occasion)" hidden> 

And that is the javascript:

var loadFileStatus = operate(occasion) { 
    doc.getElementById('statustext').placeholder = "Say one thing about this photograph <?php echo $f;?>.";
    doc.getElementById("statusBtn").fashion.marginRight = "20px";
    doc.getElementById('postform').fashion.backgroundColor="#D2D2FA";
    doc.getElementById("statustext").fashion.marginBottom = "5px";
    doc.getElementById('uploadStatusImage').fashion.show = "none";
    doc.getElementById('uploadVideoUser').fashion.show = "none";
    var closeBtn = doc.getElementsByClassName("popupCloseBtn");
    for(var i = 0; i < closeBtn.size; i++){
        closeBtn[i].fashion.show = "inline";
    }
    var reader = new FileReader();
    reader.onload = operate(){
      var output = doc.getElementById('outputstatus');
      output.src = reader.end result;
    };
    reader.readAsDataURL(occasion.goal.recordsdata[0]);
}; 

If somebody may assist me, I might respect it very a lot.

[ad_2]

Leave a Reply