I am trying to let users upload .flv files that will be played through flow player. While I am not getting an error, the file is not copying to the ftp folder. The upload script I have is
if ($_FILES["file1"]["type"] == "video/flv")
{
$path1 = "uploads/".time().'.'.$HTTP_POST_FILES['file1']['name'];
$path1 = str_replace (" ", "", $path1);
$path1 = str_replace("#", "No.", $path1);
$path1 = str_replace("$", "Dollar", $path1);
$path1 = str_replace("%", "Percent", $path1);
$path1 = str_replace("^", "", $path1);
$path1 = str_replace("&", "and", $path1);
$path1 = str_replace("*", "", $path1);
$path1 = str_replace("?", "", $path1);
if ($_FILES["file1"]["error"] > 0)
{
header("location:video.php");
die();
}
else
{
copy($_FILES["file1"]["tmp_name"],$path1);
}
}