title: jQuery-File-Upload change path dynamically
body: <p>I'm using the Blueimp jQuery file upload tool. How can I dynamically change folder for uploads?</p>
  
  <p>I've tried this way:</p>
  
  <p>UploadHandler.php</p>
  
  <pre><code>$dirPath = $_POST['dirpath'];
              'upload_dir' =&gt; '../../mydir/'.$dirPath,
              'upload_url' =&gt; '../../mydir/'.$dirPath,
  </code></pre>
  
  <p>HTML with Form:</p>
  
  <pre><code>&lt;input type="text" name="dirpath" value="123"/&gt;
  </code></pre>