Not able to upload large video file up to(20 to 100 MB). Already setup php.ini file on server .
upload_max_filesize = 2000M
post_max_size = 2000M
max_execution_time = 120
max_file_uploads = 7
memory_limit=128M
Getting
"HTTP Error 500.0 - Internal Server Error The page cannot be displayed
because an internal server error has occurred."
or
"This page is not available."
sometime uploading process is shows 40 to 60 percent then its automatically restart the uploading process.
using simple move_uploaded_file() php function.
<?php
ini_set('max_execution_time', 50000);
$target = "upload/";
$target = $target . basename( $_FILES['uploaded']['name']) ;
if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target))
{
echo "The file ". basename( $_FILES['uploaded']['name']). " has been uploaded";
}
else
{
echo "Sorry, there was a problem uploading your file.";
}
?>
Thanks