I use jQuery-File-Upload when uploading files, create a folder on the server and upload it there.
$folder = date("dmY His"); // присваиваем переменно сег. дату $up = '/image/'.$folder.'/'; //$title = '/4ddddd/'; $this->response = array(); $this->options = array( 'script_url' => $this->get_full_url().'/'.$this->basename($this->get_server_var('SCRIPT_NAME')), 'upload_dir' => dirname($this->get_server_var('SCRIPT_FILENAME')).$up, 'upload_url' => $this->get_full_url().$up, The $up variable needs to extend the life while the user is on the site ... I think in $_SESSION I don’t know how to implement it ....
$_SESSION['name'] = "value";- Moonvvell