title: PHP - blueimp custom upload directory - empty list on reload
body: <p>i use blueimp on php. In HTML i've put a hidden input field to submit the User_ID (after login, ID of the user from DB) to the Upload Handler as $_POST value. I use the User_ID value as upload directory name to separate each users files from each other. </p>
  
  <p>HTML:</p>
  
  <pre><code>    &lt;form id="fileupload" action="server/php/index.php" method="POST" enctype="multipart/form-data"&gt;
      &lt;input type="hidden" name="user_file_directory" id="user_file_directory" value="&lt;?php echo $_SESSION['user_ID']; ?&gt;"&gt;
  </code></pre>
  
  <p>index.php :</p>
  
  <pre><code>&lt;?php
  error_reporting(E_ALL | E_STRICT);
  require('UploadHandler.php');
  $user_filedirectory = $_POST['user_file_directory'];
  $urlHolder = 'user_'.$user_filedirectory.'/';
  $options = array(
                  'upload_dir' =&gt; $_SERVER['DOCUMENT_ROOT'].'/ds-admin/server/php/'.$urlHolder,
                  'upload_url' =&gt; './server/php/'.$urlHolder.'/',
  );
  if($urlHolder){
      $upload_handler = new UploadHandler($options , true , null);
  }
  ?&gt;
  </code></pre>
  
  <p>This works fine to upload something and after upload i can see the thumbnails and even enlarge them. But on a reload of the HTML the list of existing Files is empty, thou the files do still exist on server inside the right folder. On re upload of a file i will see only the new files.</p>
  
  <p>How can i retrieve the content of the custom upload folder on HTML Page load? do i have to set the download-file-directory within the script part of the HTML? </p>