<?
include("upload.class.php");
if($_POST[upload]){
$up_obj = new UploadAudioFile();
//here pass tow argument upload_dir_path and save file name
//echo $up_obj->upload_file(upload_dir,save_file_name);
//if no file name pass then set uploading file name
//echo $up_obj->upload_file("./upload/");
// if no upload dir pass then will be default dir
//echo $up_obj->upload_file();
echo $up_obj->upload_file("./upload/","ringtone");
exit;
}
?>
<center> <br><br>
<form method="post" enctype="multipart/form-data">
Upload Audio File:<input type="file" name="afile" size="55" accept="application/msexcel"><br><br>
<input type="submit" value="Submit" name="upload">
</form>
</center>
|