title: Fileupload Closest tr in Jquery
body: <p><strong>HTML</strong></p>
  
  <pre><code>&lt;table&gt;
      &lt;tr&gt;
          &lt;td&gt; &lt;input type="file"  /&gt; &lt;/td&gt;
           &lt;td&gt; &lt;input type="button" id="btn"  /&gt; &lt;/td&gt;      
     &lt;/tr&gt;        
      &lt;tr&gt;
      &lt;td&gt; &lt;input type="file"  /&gt; &lt;/td&gt;
            &lt;td&gt; &lt;input type="button" id="btn"  /&gt; &lt;/td&gt;      
     &lt;/tr&gt;
  
      &lt;tr&gt;
          &lt;td&gt; &lt;input type="file" /&gt; &lt;/td&gt;
            &lt;td&gt; &lt;input type="button" id="btn"  /&gt; &lt;/td&gt;    
     &lt;/tr&gt;
  
  &lt;/table&gt;
  </code></pre>
  
  <p><strong>JQUERY</strong></p>
  
  <pre><code>  var formData = new FormData();
    var tr = $(this).closest('tr');
    var fup = $(tr).find("input[type='file']");
    var totalFiles = fup.length;//Here, getting total file count
    for (var i = 0; i &lt; totalFiles; i++) {
         var file = fup.file[i];//I am getting exception here
         formData.append("fupUpdate", file);
         }
  </code></pre>
  
  <p>I am unable to get the list of  files appended to formdata.</p>
  
  <pre><code>Error Message: "Cannot read property '0' of undefined"
  </code></pre>
  
  <p>Please assist me in resolving the issue.</p>