Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Ajax File Upload withoug Drop/Drag and No multi select

$
0
0

Not sure what I have done wrong, but when I add the file upload control I don't get the drag/drop box, only a select file button and then when I go to select files I can only select 1 at a time. (No Shift/Ctrl) support.  Thoughts. My code is as basic as it gets.

Version: 4.1.7.725 & Runtime: v4.0.30319 installed in VS2010 via NuGet.

<ajaxToolkit:AjaxFileUpload ID="AjaxFileUpload1" OnUploadComplete="AjaxFileUpload1_UploadComplete" runat="server" /><ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></ajaxToolkit:ToolkitScriptManager>
        protected void AjaxFileUpload1_UploadComplete(object sender, AjaxControlToolkit.AjaxFileUploadEventArgs e)
        {
            Label1.Text = e.FileSize.ToString();
            AjaxFileUpload1.SaveAs(MapPath("~/Uploads/"+  e.FileName));
        } 


 

 


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>