파일의 실제 위치 $location = $_FILES["file"]["tmp_name"]; // 서버에 올려진 임시파일 move_uploaded_file($location, $destination); @chmod($destination,0707); // 권한 신규 부여 echo $sourcePath.'/'.$filename;// 최종적으로 에디터에 넘어가는 값 } else { echo $message = 'Ooops! Your upload triggered the following error: '.$_FILES['file']['error']; } }// 파일이 넘어왔는지 체크 ?>