1.11M Members

video upload

 
2
 

hey guys,does anyone here know some tutorial on how to upload video files?tutorial in Adobe is quite confusing.Thanks..

 
0
 

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.

 
1
 

ok,thanks I got it now.

 
0
 

sir how to upload video in php language

 
0
 
<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 ) ;
			
		}
 
0
 

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......

 
0
 

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">
 
0
 

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

 
0
 

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

 
0
 

how to insert the chat system to my page using ajax?

 
-1
 

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>";

}



?>
 
0
 

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

Isn't it about time forums rewarded their contributors?

Earn rewards points for helping others. Gain kudos. Cash out. Get better answers yourself.

It's as simple as contributing editorial or replying to discussions labeled or OP Kudos

You
This article has been dead for over six months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article