Page 1 of 1

Upload large size video files around 5MB

Posted: Fri Jul 09, 2010 1:40 am
by periyasamy
I had written the upload code to upload video files i can able to upload KB size videos but when i upload MB files cannot upload big size files . I have pasted my code below if any one knows the solution please post the answers as soon as possible its urgent.

I can't get the filename and size while we upload max size videos.

echo 'filename:'.$_FILES["uploadfile"]["name"];
echo 'size:'.$_FILES["uploadfile"]["size"];

output : NULL

if (move_uploaded_file($_FILES['uploadfile']['tmp_name'], $file))
{
}else
{
echo 'fail to upload';
}

when upload big files directly goes to the else displays as 'fail to upload' message instead of execution of if loop.

I hope somebody will find the solution for this please reply me as soon as possible.
Thanks

Re: Upload large size video files around 5MB

Posted: Fri Jul 09, 2010 1:52 am
by Christopher
You probably need to set the max upload size and max post size to larger values in your configuration.

Re: Upload large size video files around 5MB

Posted: Fri Jul 09, 2010 3:35 am
by periyasamy
Thank u very much I am using wamp server and i have changed the settings in php.ini file
now video has been uploading with the size is more than 5MB.

hi i am writing normal php , can u give the URL to learn any framework from basics.

Thanks