title: I can't use fileUpload.PostedFiles[] property?
body: <p>I can't use <code>fileUpload.PostedFiles[]</code> property?<br>
  I actually need a multiple fileuploader &amp; resize.<br>
  I use <code>HttpFileCollection</code> hfc for all my files.
  It go's always wrong by <code>string filename = fileUpload</code>.<br>
  Is this a good way to do this? </p>
  
  <pre><code>protected void UploadFile_Click(object sender, EventArgs e)
      {
          HttpFileCollection hfc = Request.Files;
          for (int i = 0; i &lt; hfc.Count; i++)
          {
              HttpPostedFile hpf = hfc[i];
              if (hpf.ContentLength &gt; 0)
              {
                if (fileUpload.HasFile)
                  {
  
                      **string filename=fileUpload.PostedFiles[i].FileName;**    
  
                      string directory = Server.MapPath(@"Uploaded-Files\");    
  
                      Bitmap originalBMP = new Bitmap(fileUpload.FileContent);
  
                      Bitmap newBMP = new Bitmap(originalBMP, 800, 480);
  
                      Graphics oGraphics = Graphics.FromImage(newBMP);   
  
                      oGraphics.DrawImage(originalBMP, 0, 0, newWidth, newHeight);
  
                      newBMP.Save(directory + "tn_" + filename);
  
                      originalBMP.Dispose();
                      newBMP.Dispose();
                      oGraphics.Dispose();
  
                  }
  
              }
  
          }
  
  
  
      }
  </code></pre>