Why doesnt fileupload control uploads multiple files with same data inside it?
<p>I am using <code>FileUpload</code> control in ASP.NET and uploading multiple files with it, but the problem is that it uploads multiple files with same content in it, i.e. if I upload 4 images <code>image1.png</code>, <code>image2.png</code>, <code>image3.jpg</code>, <code>image4.gif</code> then it contains same pic/data inside each picture. Why? </p>

<p>.aspx code:</p>

<pre><code>&lt;asp:FileUpload ID="FileUploadMaps" AllowMultiple="true" runat="server" /&gt;
&lt;asp:HiddenField ID="hdnFieldMapPath" runat="server" /&gt;
</code></pre>

<p>.cs code:</p>

<pre><code>if (FileUploadMaps.HasFiles)
{
    foreach (HttpPostedFile uploadedfile in FileUploadMaps.PostedFiles) 
    {
        string fileName = Path.GetFileName(uploadedfile.FileName);
        FileUploadMaps.SaveAs(Server.MapPath("~/SiteImages/") + fileName);

        mngUploadedMaterialMaps.InsertUploadedMaterialMaps(fileName, "", PropertyDetailsID);
    }
}
</code></pre>