iphone - iOS camera rotates properly in safari but not in web app mode? -
iphone - iOS camera rotates properly in safari but not in web app mode? -
i building web app allow user take image , upload folder on server , image displayed on gallery page. upload portion works fine having problems ios. when run app in safari, works fine when access camera, can rotate photographic camera , take portrait or landscape pictures , upload , render on gallery page. problem when runs in web app mode homescreen...if launch access photographic camera while in portrait mode, photographic camera launches if turn phone in photographic camera mode image rotates if locking portrait mode. there way programmatically, allow photographic camera rotate when runs in safari?
here code, perhaps incorrect?
<form action="upload.php" method="post" enctype="multipart/form-data" style="width:100%;"> <span style="text-align: center; word-wrap: break-word;"> please take picture: <br></span> <input id="uploadimage" type="file" accept="image/*" name="uploadfile" onchange="previewimage();"> <img id="uploadpreview" style="height:120px; width: auto;" /> <script type="text/javascript"> function previewimage() { var ofreader = new filereader(); ofreader.readasdataurl(document.getelementbyid("uploadimage").files[0]); ofreader.onload = function (ofrevent) { document.getelementbyid("uploadpreview").src = ofrevent.target.result; }; }; </script> <input type="submit" value="upload file" ><br> please wait window close after uploading </form>
anyone else experience photographic camera glitch in ios webapp?
ios iphone safari camera
Comments
Post a Comment