title: jQuery.post and joomla pass upload field
body: <p>I'm currently developing one component for <code>joomla</code> and on the front end i need tu upload photo.... The php code for upload is ready... The problem is that i want to make the pic upload <code>onchange</code> of <code>file field</code> named logo but it says that there's no such entry(javascript does not pass the fieldvalue or something)
  <code>Notice: Undefined index: logo in /var/www/furnish/components/com_furnishing/controller.php on line 21</code></p>
  
  <p>My javascript code is </p>
  
  <pre><code>jQuery(function(){
          console.info("ok"); 
  
          jQuery('input[name="logo"]').change(function(){
              var val=jQuery(this).val();
              var filename = jQuery('input[name="logo"]').val();
              //var forma = $(this);
              //
          //  jQuery('input[name="task"]').val('register.upload');
              console.log(filename);
               $(this).ajaxSubmit({
                  type: "POST",
                  url: "index.php?option=com_furnishing&amp;task=upload",
                  enctype: 'multipart/form-data',
                  data:  jQuery('form[name="Form"]'),
                  success: function (dati) {
                      alert("Data Uploaded: "+dati);
                  }
              });/*
          jQuery('input[name="task"]').val('register.upload');
              jQuery.post('index.php?option=com_furnishing&amp;task=upload',$("form[name='Form']"),function(data){
                  if (data)
                  {
                      jQuery('input[name="logo"]').val(data);
                  }
                  else
                  {
                      jQuery('input[name="logo"]').val('');
                  }
                  alert(data);
                  console.info(data);
              });
              jQuery('input[name="task"]').val('register.regme');*/
          console.info("ok");
  
          });
      });`
  </code></pre>
  
  <p>The part which is <code>commented out</code> has the same problem. So the question is how to make it work?  </p>
  
  <p>Thank you!</p>