진짜 돌아버리겠네요...

웹페이지에 사진/이미지 업로드 기능 + 업로드한 사진을 액자에 박아서 다운로드하는 기능을 어찌어찌 넣었는데

이게 망할 안드로이드에서는 작동하는데 아이폰에서는 작동을 안하네요...


이게 뭐때문에 그런지 ,어떻게 해야할지를 전혀 모르겠어서 난감한 상황입니다...맨날 웹에서 아니면 갤럭시에서 테스트를해서...

혹시 이런거 해결법 아시는분 있을까요?


아예 ios용 코드를 따로 짜야되는걸까요...?


혹시몰라 코드 한번 올려봅니다...php입니다...


// 업로드할 파일 정보 확인
$userid = $_SESSION['user_id'];
$file = $_FILES['image'];
$filename = $file['name'];
$tmpFilePath = $file['tmp_name'];
$imageId = $_POST['ticket'];
$ticketId=$_POST['ticketId'];
$width = 600;
$height = 0;

// 파일을 업로드할 경로 설정
$destination = $uploadDirectory . $filename;

// 파일을 지정된 경로로 이동
if (move_uploaded_file($tmpFilePath$destination)) {
    
// 파일 업로드 성공

        try {
        
//사진 이미지 회전 문제
        imagRotateResolve($destination,$filename);
    } 
catch (Exception $e) {
       }

        
$uploadeFileImage=getcwd()."/".$uploadDirectory$filename;
        
//업로된 파일 정보 가저오기
    $info_image=getimagesize($uploadeFileImage);
    
if($info_image[0] > 600){
  
//이미지의 가로길이가 400 크면 썸네일 생성
        //티켓별 썸네일 가로 세로 사이즈 조절
       // getWidthAndHeight($ticketId);
        $gi_joon = "600";
        
$imagehw = getImageSize($destination);
        
$imagewidth = $imagehw[0];
        
$imageheight = $imagehw[1];
        
$new_height = $imageheight * $gi_joon / $imagewidth ;
        
$new_height=ceil($new_height);
        
$new_width = $gi_joon;
        
        
$save_filename=$uploadDirectory."thumb_".$filename;
                       
        thumbnail($uploadeFileImage$save_filename ,$new_width$new_height);
                  
        
$destination=$save_filename;    }
                
// 이미지 경로를 DB에 저장
    $sql = "INSERT INTO ticket_images (image_path, user_id, imageId) VALUES ('$destination', $userid, '$imageId')
        
ON DUPLICATE KEY UPDATE image_path = VALUES(image_path)";

                
if (mysqli_query($conn$sql)) {

                
$response = [
            
'success' => true,
            
'imageUrl' => $destination,
            
'ticketId'=>$ticketId        ];
    } 
else {
        
$response = [
            
'success' => false,
            
'message' => 'DB 저장 실패'
        ];
    }} 
else { 
   
// 파일 업로드 실패
    $response = [ 
       
'success' => false,
        
'message' => '파일 업로드 실패'
    ];}

// 응답 데이터 전송
header('Content-Type: application/json');echo json_encode($response);


아니 코드 그대로 복사하니까 줄이 이상하네요 죄송합니다