been trying to upload music onto a server for my website, to no avail, but strangely enough the script works fine when uploading pictures.
if(copy($_FILES['musicFile1']['tmp_name'],"uploads/".$_SESSION['username']."/item".$s_id."/".$filename1.""))
{
if(chmod("uploads/".$_SESSION['username']."/item".$s_id."/".$filename1."", 0664))
{
$msg.= "<p>File successfully copied/p>\n";
}
else
{
$msg.= "<p>Error: failed to chmod file</p>";
}
}
else
{
$msg.= "<p>Error: failed to copy file</p>";
}