<?
$strText = json_decode(stripslashes($_REQUEST['params']));
$imgbitmap = $strText->imgbitmap;
$imgname = $strText->imgname;
$target_path = "/talktalk/images/";
$target_path = $target_path . basename($_FILES['$imgbitmap']['$imgname']);
if(move_uploaded_file($_FILES['$imgbitmap']['$imgname'], $target_path)){
echo "The file ".$img_name." has been uploaded.. big";
} else {
echo "no";
}
?>
안드로이드에서 이미지를 bitmap으로 보내주는데요 들어오는 값은 확인했습니다..
근데 $target_path = $target_path . basename($_FILES['$imgbitmap']['$imgname']);
이부분에서 $target_path
를 찍어보면 /talktalk/images/ 이게 그대로 나오네요 ㅜㅜ
아시는 고수분 계시나요 ㅜㅜ