Iam facing a problem in saving files used to uplaod by RadUpload
everytime while saving alwayes get 0 files count although I attached files to it
can you help me discover where is the problem ...?
attached radUploader tags
<telerik:RadUpload ID="RUAttach" runat="server" Skin="Web20" TargetFolder="Attachment"
Width="100%" />
<telerik:RadProgressManager ID="RadProgressManager1" runat="server" />
<telerik:RadProgressArea ID="RadProgressArea1" runat="server" DisplayCancelButton="True"
ProgressIndicators="TotalProgressBar, TotalProgress, RequestSize, FilesCountBar, FilesCount, SelectedFilesCount, CurrentFileName, TimeElapsed, TimeEstimated, TransferSpeed"
Skin="Web20">
</telerik:RadProgressArea>
and this is the method used to save attachments :
RadUploadContext uploadContext = RadUploadContext.Current;
foreach (UploadedFile file in RUAttach.UploadedFiles)
{
if (file != null)
{
file.SaveAs(Server.MapPath(
"~/MyFiles/" + file.GetName()));
}
}
the count files =0 in ( RUAttach.UploadedFiles)
thanks in advance
Mona