title: How can I use Multi Media Uploader in the WordPress Plugins?
body: <p>I try to add the multi uploading options in the wordpress plugins I repeated this code in the plugin(two times) only changing the id name. </p>
  
  <pre><code>                    &lt;script language="JavaScript"&gt;
  jQuery(document).ready(function($) {
      jQuery('#upload_image_button').click(function() {
          formfield = jQuery('#upload_image').attr('name');
          tb_show('', 'media-upload.php?type=image&amp;TB_iframe=true');
          return false;
      });
  
      window.send_to_editor = function(html) {
          imgurl = jQuery('img', html).attr('src');
          jQuery('#upload_image').val(imgurl);
          tb_remove();
      };
  
  });
                      &lt;/script&gt;
  &lt;input id="upload_image" style=" margin-left:303px;" type="text" size="36" name="upload_image_template" value="&lt;?php echo get_option('upload_image_template'); ?&gt;" /&gt;
                          &lt;input id="upload_image_button" type="button" value="Browse" /&gt;
  </code></pre>
  
  <p>Whenever I try to upload a image that media frame comes and the uploading process are did successfully. But Insert Into Post fetch the correct url but pasted in different input box.
  For example:</p>
  
  <pre><code>1) [text box1] [browse Button]
  2) [text box2] [browse button]
  </code></pre>
  
  <p>When I upload image with Text Box One that <code>[insert post]</code> that image path is shown in <code>[text box 2]</code>
  I am Not Sure Whether the Problem is mine or that script didn't support multi file upload option. </p>