hello i want to upload an audio file. i specified the location but the file doesnt go there. it stores the path in the row in the table on database but it doesnt store the file on the folder.
i define the upload path on my config file
define("UPLOAD_PATH_AUDIO", "uploads_audio/");
and this is the php
$upload_path_audio='../'.UPLOAD_PATH_AUDIO;
$actual_image_name = 'audio'.$user_id.'_'.time().$i.".".$ext;
$uploadedfile=$_FILES['audioaud']['tmp_name'][$name];
$newwidth=$configurations[0]->upload;
if(move_uploaded_file($uploadedfile, $upload_path_audio.$actual_image_name))
//if($filename)
{
internalAudioUpload($user_id,$actual_image_name,$group_id,$conversationImage);
$newdata=internalGetUploadImage($uid,$actual_image_name);
if($newdata)
{
if(empty($v))
$v=$newdata[0]->id;
else
$v=$v.','.$newdata[0]->id;
echo '<img src="'.BASE_URL.'/wall_icons/profile-audio1.png" title="'.$AudioName.'" class="preview updateControl" id="'.$v.'"/>';
}
}
else
{
echo "Fail upload fail.";
}
i keep getting an Fail upload fail alert message