title: jQuery-File-Upload
body: <p>Not sure if you guys can assist this relates to the  jQuery-File-Upload code.
  I am trying to pass through a value to create a folder name for my uploads.
  Basically a query is executed in the include and a numeric value is returned to the variable $leaseId_file .  -The $leaseId_file variable becomes the folder name.
  This part works fine. The folder is created and files are saved to the directory.
  However, the uploaded files are not being listed when I refresh the page.
  The following is the code I used in the file php/.index.php
  - any help would be awesome.- Thanks.</p>
  
  <pre><code>            error_reporting(E_ALL | E_STRICT);
  
              include_once('../../../_includes/get_leaseId_files.php'); // All this does is returns a value for $leaseId_file. This is the value I want for the directory.
  
              require('upload.class.php'); 
  
              class CustomUploadHandler extends UploadHandler {
                  protected function get_user_id() {
                  global $leaseId_file;
  
                   return $leaseId_file;
  
                  }
              }
  
  
              $upload_handler = new CustomUploadHandler(array(
                  'user_dirs' =&gt; true
              ));
  </code></pre>