title: Get upload Dir for an Image in a custom config - Magento
body: <p>I'm trying to retrieve the full URL of an uploaded image in the backend.</p>
  
  <p>The code that creates the config for the upload:</p>
  
  <pre><code>&lt;backend_model&gt;adminhtml/system_config_backend_image&lt;/backend_model&gt; 
  &lt;upload_dir config="system/filesystem/media" scope_info="1"&gt;voucher/logo&lt;/upload_dir&gt;
  &lt;base_url type="media" scope_info="1"&gt;voucher/logo&lt;/base_url&gt;
  </code></pre>
  
  <p>but when i try to get it:</p>
  
  <pre><code>Mage::getBaseUrl('media').Mage::getStoreConfig('group/locale/module_logoimage',Mage::app()-&gt;getStore());
  </code></pre>
  
  <p>It won't give me the upload directory set in the system.xml(above)
  I get: <a href="http://sample.com/media/default(scope)/image.png" rel="nofollow">http://sample.com/media/default(scope)/image.png</a> and it misses the voucher/logo part.
  How can I get that from the config without reading the node?</p>
  
  <p>Thanks</p>