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
vin_akleh
Forum Commoner
Posts: 53 Joined: Sat Feb 14, 2009 10:26 am
Post
by vin_akleh » Wed Mar 31, 2010 2:54 pm
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
Post
by vin_akleh » Wed Mar 31, 2010 3:19 pm
is it because mp3 files is larger and it times out??!!