it's as simple as uploading other files.
If you know how to upload other type of files, then you know this also.
try saerching for uploading file using php/html and/or asp.net/html.

good luck.

<input type="file" name="video">

php code for upload

$ss=mkdir("videos/",0777);
		$uploaddir="videos/";
		$filetype=$_FILES[video][type];
		$filename=$_FILES[video][name];
		$realpath=$uploaddir.$filename;
		if(!empty($filetype)) 
		{	 
			move_uploaded_file($_FILES['video']['tmp_name'],$realpath ) ;
			
		}

I can not upload video file with PHP in my server but it work's fine in localhost.
I fix the max_upload_filesize is 60M.

What's the problem?Please help me......

Put this into your html form to allow the user to upload more than the browser can normally handle.

<input type="hidden" name="MAX_FILE_SIZE" value="60000000" />
<input type="file" name="video">

Good day to all IT professionals...I'm currently developing a Social networking Site
for our school and it is exclusive for our school only. can you help me by giving me a tip on how to start with my project and where to start also....thank you so much

how can i save the message in the inbox. and the sent messages in the sent items.can you give me a php code for this? thank you

Hi,
The following code will guide you to upload video files.

//get the size of the video
<?php
$size=filesize($_FILES['video']['tmp_name']);



//compare the size with the maxim size we defined and print error if bigger

if ($size > MAX_SIZE*1024)

{

echo '<h1>You have exceeded the size limit!</h1>';

$errors=1;

}



//give the video a unique name in case a video already exists with the name on the server

$video_name=time().'.'.$extension;



//assign a folder to save the video to on your server

$newname="video/".$video_name;



//verify that the video has been loaded

$copied = copy($_FILES['video']['tmp_name'], $newname);

if (!$copied) 

{

echo '<h1>Copy unsuccessful!</h1>';

$errors=1;

}}}}



//If no errors registered, print the success message

if(isset($_POST['Submit']) && !$errors) 

{

echo "<h1>File Uploaded Successfully! Try again!</h1>";

}



?>

hi
format field of table in sql (database - phpmyadmin )for video ???
varchar (10000) : 1mb
for 6 mb ??? what format ?

This article has been dead for over six months. Start a new discussion instead.