When my users select a file to upload, the File Select box closes then immediately re-opens again for each previously selected file. For example, if I select one file, it works fine. When a second file is selected, the file select box closes, but then opens again with the name of the first file selected. If I select a third file, the File Select box opens twice more, once for each of the previously selected files.
In my implementation, I display the selected files myself and then trigger the upload after the files are selected. The upload of the selected files works fine. Any ideas??
My RadAsyncUpload control is defined this way:
<telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" style="display:none;" MultipleFileSelection="Disabled" Skin="Silk" TargetFolder="uploads" HideFileInput="true" ManualUpload="true" EnableInlineProgress="false" OnClientFileSelected="RadUpload_OnClientFileSelected" OnClientFilesUploaded="RadUpload_OnClientFilesUploaded" OnClientFileUploaded="RadUpload_OnClientSingleFileUploaded" OnClientFileUploading ="RadUpload_OnClientFileUploading" OnClientFileUploadFailed="RadUpload_OnUploadFailed" OnClientValidationFailed ="RadUpload_OnClientValidationFailed" UploadedFilesRendering="BelowFileInput" HttpHandlerUrl="~/Handler.ashx" DisablePlugins="true" OnClientFileUploadRemoving="RadUpload_FileRemoving">
I start the selection by clicking a button which calls this javascript function:
function RadUpload_StartSelection(sender, args) {
$telerik.$(".ruFileInput").click();
}
function RadUpload_OnClientFileSelected(sender, args) {
//fired for each file that was selected. We add the file to our list
//with a "[X]" link to remove it (which calls RadUpload_removeFile)
$telerik.$(args.get_row()).addClass("ruUploading"); //adding this css class to the row prevents it from displaying under the control
//now add the filename and [X] anchor to our file list
var $List = $("#divFileList");
if ($List.html().length>0) $List.html($List.html()+" + ");
$List.html($List.html()+args.get_fileName()+" <a href='#' id='" + args.get_row()._mapIndex + "' onclick='RadUpload_removeFile(this);return false;'>[X]</a>");
}