I'm trying to make a script to upload .mov files this is the code I have - really the only thing I can't figure out is instead of image/jpeg or gif etc. what do I put exactly for video files? specifically .movs [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <body> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>File Upload script</title> </head> <body> <h1>Upload...</h1> <form name="form1" method="post" action="" enctype="multipart/form-data"> <input type="file" name="videofile"> <br> <input type="submit" name="Submit" value="Submit"> <? if(isset( $Submit )) { //If the Submitbutton was pressed do: $vid_name = $_FILES['videofile']['name']; mysql_select_db('sec2nun', $db); $sql = "INSERT INTO `site_tbl` ( `u_ID` , `page_title` , `page_img` , `page_vid` , `page_content` , `featured_id` ) VALUES ( NULL , '', '', 'vid_name', '', '0' ) "; if ($_FILES['videofile']['type'] == "video/mov"){ copy ($_FILES['videofile']['tmp_name'], "uploads/".$_FILES['videofile']['name']) or die ("Could not copy"); $result = mysql_query($sql, $db); if(!$result){ echo "failed to insert image information into mySQL database, reason: "; echo mysql_error(); die(); } else{ echo "image information successfully added to mySQL database...<br/> "; } echo ""; echo "<br/>"; echo "Name: ".$_FILES['videofile']['name'].""; echo "<br/>"; echo "Size: ".$_FILES['videofile']['size'].""; echo "<br/>"; echo "Type: ".$_FILES['videofile']['type'].""; echo "<br/>"; echo "Copy Done....<br/><br/>"; echo "image preview:<br/><EMBED SRC=\"uploads/$vid_name\" height=\"365\" width=\"345\" autostart=\"true\" loop=\"false\"></EMBED>"; } else { echo "<br><br>"; echo "Could Not Copy, Wrong Filetype (".$_FILES['imagefile']['name'].")<br>"; } } ?> </form> </body> </html> </body> </html> [/code] any help would be much appreciated. thanks