title: TinyMCE image manager plugin "Archiv"
body: <p>I am using the TinyMCE image manager plugin <strong><a href="http://sourceforge.net/projects/archiv/" rel="nofollow">Archiv</a></strong>.</p>
  
  <p>I configured as recommended</p>
  
  <p>in config.base.php, if I set</p>
  
  <pre><code>'upload_path'           =&gt; '/var/www/example/template/', 
  'upload_uri'            =&gt; 'http://www.example.com/template/',
  </code></pre>
  
  <p>it works fine, but if I use:</p>
  
  <pre><code>'upload_path' =&gt; $upload_path,
  'upload_uri' =&gt; $upload_uri,
  </code></pre>
  
  <p>where </p>
  
  <pre><code>$dir = $client-&gt;agencycode;  //which is string 
  $upload_path = "/var/www/example/template/$dir/";
  $upload_uri = "http://www.example.com/template/$dir/";
  </code></pre>
  
  <p>The plugin work properly except uploading files.
  I can create directory, list directory, delete files. The only thing do not work is upload a files.</p>
  
  <p>Is there anyway or anything need to configure in order to make uploads work?</p>
  
  <p>Thanks.</p>