It looks like you're new here. If you want to get involved, click one of these buttons!
<? session_start();
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Uploadify scriptData Sample</title>
<link rel="stylesheet" href="uploadify/uploadify.css" type="text/css" />
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/jquery.uploadify.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#fileUpload").fileUpload({
'uploader': 'uploadify/uploader.swf',
'cancelImg': 'uploadify/cancel.png',
'script': 'uploadify/upload.php',
'folder': '../vimp/uploads/',
'multi': false,
'displayData': 'speed',
'auto': true,
'fileDesc' : 'Videodateien (.mov, .avi, .wmv, .rm, .mp4, .mpg, .flv)',
'fileExt' : '*.mov;*.avi;*.mp4;*.flv;*.rm;*.mpg;*.wmv',
'removeCompleted' : false,
'scriptData': { 'session': '<?php echo session_id();?>'},
'onComplete': function(event, data, queueID, fileObj, response) {top.location.href='http://www.talentchip.de/upload2.php'}
});
});
</script>
</head>
<body>
<div id="fileUpload">You have a problem with your javascript</div>
</body>
</html><?php
if ($_REQUEST['session']) session_id($_REQUEST['session']);
session_start();
$_SESSION["videoname"] = "";
// JQuery File Upload Plugin v1.4.1 by RonnieSan - (C)2009 Ronnie Garcia
if (!empty($_FILES)) {
$tempFile = $_FILES['Filedata']['tmp_name'];
$vidfile_id = md5($_FILES["Filedata"]["tmp_name"] + rand()*100000);
$extension = ".".array_pop(explode(".", $_FILES["Filedata"]["name"]));
$videokon = $vidfile_id.$extension;
// Uncomment the following line if you want to make the directory if it doesn't exist
// mkdir(str_replace('//','/',$targetPath), 0755, true);
move_uploaded_file($tempFile,$videokon);
mail('info@webdesign-freren.de','Ein neues Video hochgeladen',$videokon.session_id());
$_SESSION["videoname"] = $videokon;
$_SESSION["videobytes"] = $_FILES['Filedata']['size'];
$_SESSION["videoformat"] = $extension;
}
echo '1';
?>