السلام عليكم
مشكله عند رفع اكثر من ملف
<asp:FileUpload ID="FileUpload1" runat="server" AllowMultiple="true" /> <asp:Button ID="btnUpload" Text="Upload" runat="server" OnClick ="UploadMultipleFiles" accept ="image/gif, image/jpeg" /> <hr /> <asp:Label ID="lblSuccess" runat="server" ForeColor ="Green" />
foreach (HttpPostedFile postedFile in FileUpload1.PostedFiles)
{
string fileName = Path.GetFileName(postedFile.FileName);
postedFile.SaveAs(Server.MapPath("~/Uploads/") + fileName);
}
lblSuccess.Text = string.Format("{0} files have been uploaded successfully.", FileUpload1.PostedFiles.Count);
FileUpload1.PostedFiles غير متاحه فقط متاح FileUpload1.PostedFile
عملت استدعاء الى