mp3 uploader not working!!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
vin_akleh
Forum Commoner
Posts: 53
Joined: Sat Feb 14, 2009 10:26 am

mp3 uploader not working!!

Post by vin_akleh »

this code works file on images, pdf and shortcut files but not mp3!!! why?? any one knows

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>
thanks in advanced
vin_akleh
Forum Commoner
Posts: 53
Joined: Sat Feb 14, 2009 10:26 am

Re: mp3 uploader not working!!

Post by vin_akleh »

is it because mp3 files is larger and it times out??!!
Post Reply