Hi all
sorry to bother you guys) i am not a web developer, but i need some help in php.
I have downloaded script, which is doing multiple file uploads.

I need to change it: i want to make a new folder for each new multiple upload. It can be created by user, or it can be created by using date and time. So folder name will be user_yyyy_mm_dd_HH-MM-SS.

Is it simple task? can anyone help with it please)


here is index.php
PHP Code:
<!DOCTYPE>
<
html>
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<
title>Image upload</title>
<
link href='http://fonts.googleapis.com/css?family=Boogaloo' rel='stylesheet' type='text/css'>
<
script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<script type="text/javascript" src="js/multiupload.js"></script>
<script type="text/javascript">
var config = {
    support : "image/jpg,image/png,image/bmp,image/jpeg,image/gif,image/tiff,image/raw,image/html,image/pdf",        // Valid file formats
    form: "demoFiler",                    // Form ID
    dragArea: "dragAndDropFiles",        // Upload Area ID
    uploadUrl: "upload.php"                // Server side upload url
}
$(document).ready(function(){
    initMultiUploader(config);
});
</script>
<link href="css/style.css" type="text/css" rel="stylesheet" />
</head>
<body lang="en">
<center><h1 class="title">Multiple Drag and Drop File Upload</h1></center>
<div id="dragAndDropFiles" class="uploadArea">
    <h1>Drop Images Here</h1>
</div>
<form name="demoFiler" id="demoFiler" enctype="multipart/form-data">
<input type="file" name="multiUpload" id="multiUpload" multiple />
<input type="submit" name="submitHandler" id="submitHandler" value="Upload" class="buttonUpload" />
</form>
<div class="progressBar">
    <div class="status"></div>
</div>
</body>
</html> 
here is upload.php
PHP Code:
<?php

if($_SERVER['REQUEST_METHOD'] == "POST"){
    if(
move_uploaded_file($_FILES['file']['tmp_name'], "uploads/".$_FILES['file']['name'])){
        echo(
$_POST['index']);
    }
    exit;
}
?>

and one more question. how to allow to upload any file?
I understant it is here:
var config = {
support : "image/jpg,image/png,image/bmp,image/jpeg,image/gif,image/tiff,image/raw,image/html,image/pdf", // Valid file formats

but what should I add?

Thank you for your help
V.