Re: changed upload file size to larger but larger files are not uploading | | i followed the steps in the tutorial for BlueVoda on how to upload a file to website and it told me.
this is the script <?php
// Receiving variables
@$email = addslashes($_POST['email']);
@$upload_Name = $_FILES['upload']['name'];
@$upload_Size = $_FILES['upload']['size'];
@$upload_Temp = $_FILES['upload']['tmp_name'];
// Validation for max file size
if ($upload_Size>0)
{
if( $upload_Size >500000000)
{
//delete file
unlink($upload_Temp);
header("Location: error.html");
exit;
}
$uploadFile = "uploads/".$upload_Name ;
@move_uploaded_file( $upload_Temp , $uploadFile);
chmod($uploadFile, 0644);
$upload_URL = "http://www.yourmusiconnet.com/uploads/".$upload_Name ;
}
//Sending Email to form owner
$mailto = "francisromano08********.com";
$mailsubj = "Song added to site";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Here is my song you bitches :\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
if ($key!="submit")
{
$mailbody .= "$key : $val\n";
}
}
$mailbody .= "upload: $upload_URL\n";
mail($mailto, $mailsubj, $mailbody, $mailhead);
header("Location: thankyoupage.html");
?>
this is what BlueVoda told us to use. We used it and it works for smaller files but large ones like full songs wont upload into the uploads folder. why? we changed the file size so larger ones can be added but they don't come through. |