간단한 업로드 스크립트 (직원이 프로필 사진을 변경하도록 허용)는 PC에서 정상적으로 작동하지만 iPhone에서 사진을 업로드하려고 할 때 페이지가 멈추는 중입니다. 로드하고 아무 일도 일어나지 않습니다.휴대 기기에서 이미지 파일 업로드
이 내 전체 테스트 PHP 파일입니다
<?php
if (isset($_POST['submitNewImage'])) {
echo 'it works, and the filename is ' . $_FILES['uploadedFile']['name'];
}
?>
<html>
<head>
<title>Untitled Document</title>
</head>
<body>
<br /><br /><br />
<form action="test.php" method="post" enctype="multipart/form-data">
<input type="file" accept="image/*" capture name="uploadedFile" /><br /><br /><br />
<input type="submit" name="submitNewImage" value="Upload" />
</form>
</body>
</html>
다시 말하지만, 이것은 PC에서 잘 작동하지만 아이폰에서 "업로드"를 터치하면, 그냥 달려 있습니다. name = "uploadedFile"을 제거하면 페이지가 실행되지만 물론 거기에 파일이 없습니다. iPhone에서 이미지를 인식하도록하려면 어떻게해야합니까?
사양에 따라 유효합니다. 웹에서 iOS와 관련된 버그가있는 것 같습니까? ''캡쳐 = '이미지''를 사용해 보셨습니까? 아마 볼 수 : http://stackoverflow.com/questions/29225824/mobile-safari-crashing-while-capturing-photo-using-input-type-file – ficuscr