benji87 Posted November 29, 2006 Share Posted November 29, 2006 Hey all im working on a script that allows a user to upload videos. Now i use the exact same script to upload images and it works perfectly and there is no file extension filtering in the script but for some reason when i try to upload a video it processes the file then says its a possible file attack. I think it may be because somehow it times out?? Could someone help me out? Thank[code]<?include 'db.php';$imgname = ($_FILES['userfile']['name']);$uploaddir = '../../video/';$uploadfile = $uploaddir . basename($_FILES['userfile']['name']);$filename = basename($_FILES['userfile']['name']);if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) { header ("Location: ../media.php");} else { echo "Possible file upload attack!\n";}$sql = mysql_query("INSERT INTO ssrfc_videos(video) VALUES('$filename')") or die (mysql_error());if(!$sql){ echo 'There has been an error while trying to upload your image.';} else { $id = mysql_insert_id();}?>[/code] Link to comment https://forums.phpfreaks.com/topic/28853-uploading-video/ Share on other sites More sharing options...
benji87 Posted November 30, 2006 Author Share Posted November 30, 2006 Anyone???? Link to comment https://forums.phpfreaks.com/topic/28853-uploading-video/#findComment-132794 Share on other sites More sharing options...
lisawebs Posted December 16, 2006 Share Posted December 16, 2006 Hi there, will you share with me your script to upload videos?I'm comitted to share any improvement and GUI that I'll developaround this.Thanks, Lisa, [email protected] Link to comment https://forums.phpfreaks.com/topic/28853-uploading-video/#findComment-142540 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.