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
Upload large size video files around 5MB
Moderator: General Moderators
-
periyasamy
- Forum Newbie
- Posts: 5
- Joined: Fri Jul 09, 2010 12:44 am
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Upload large size video files around 5MB
You probably need to set the max upload size and max post size to larger values in your configuration.
(#10850)
-
periyasamy
- Forum Newbie
- Posts: 5
- Joined: Fri Jul 09, 2010 12:44 am
Re: Upload large size video files around 5MB
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
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