Jump to content

[SOLVED] Mp3 Upload Problems


xshanelarsonx

Recommended Posts

This code will upload everything but MP3 files.

 

<form action="Music_Upload.php" method="post" enctype="multipart/form-data">
File <input type="file" name="file" id="file" /> 
<input type="submit" name="submit" value="Upload" />
</form>
<?
$file_tmp = $_FILES['file']['tmp_name'];
$fname = $_FILES['file']['name'];
$fname = str_replace(' ', '_', $fname);
move_uploaded_file($_FILES["file"]["tmp_name"],"Files/Music/" ."$fname" );
?>

Link to comment
https://forums.phpfreaks.com/topic/37412-solved-mp3-upload-problems/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.