If the file name is fin's xyz.mp3 then it is not uploading because of this fin(')s single quote. How should I use move_uploaded_file($tmp,$dest) in PHP?
Example:
$name1=$_FILES['FileName']['name'];
$tmp1=$_FILES['FileName']['tmp_name'];
$target = "../music_files/";
$up=uniqid().$name1;
$target = $target.$up;
move_uploaded_file($tmp1,$target);
HTML:
<form action="" method="post" enctype="multipart/form-data" name="loginfrm" onsubmit="return CheckLogin();">
<input type="file" id="FileName" name="FileName" class="text-box" />
<input name="Submit" type="submit" class="button" value="Save" />
</form>