mp3 uploader not working!!
Posted: Wed Mar 31, 2010 2:54 pm
this code works file on images, pdf and shortcut files but not mp3!!! why?? any one knows
thanks in advanced
Code: Select all
<html>
<body>
<form action="" method="POST" enctype="multipart/form-data">
Browse file to upload <input type="file" name="filetoupload" id="filetoupload"><br/>
<input type="submit" name="sb" id="sb" value="Upload now">
</form>
<?php
if(isset($_POST['sb'])) {
$path = "images";
$file = $_FILES['filetoupload']['name'];
move_uploaded_file($_FILES['filetoupload']['tmp_name'], "$path/$file");
}
?>
</html>
</body>