0
업로드 노래용 API를 만들었지 만 문제가 발생합니다. 내 안드로이드 장치를 통해 노래를 업로드하면 우분투의 노래 폴더에 업로드되지만이 노래는 재생되지 않습니다. 제게 해결책을주세요.PHP를 통해 업로드 된 노래
<?php
include('connect.php');
header("Content-type: text/xml");
$target_path = "./Songs/";
$target_path = $target_path . basename($_FILES['uploadedfile']['name']);
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path))
{
echo "The file ".'"'. basename($_FILES['uploadedfile']['name']) .'"'." has been uploaded";
chmod ("Songs/".basename($_FILES['uploadedfile']['name']), 0644);
}
else
{
echo "There was an error uploading the file, please try again!";
echo "filename: " . basename($_FILES['uploadedfile']['name']);
echo "target_path: " .$target_path;
}
?>
'재생 안함'이라고 말하면 서버에서 또는 Android 기기와 같은 기기로 스트리밍 하시겠습니까? 업로드가 성공적 이었습니까? – halfer