Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Commented Unassigned: AjaxFileUpload Not Working [27893]

$
0
0
The AjaxFileUpload control appears to be completely broken in the 15.1 update. OnUploadComplete doesn't fire, none of the OnClient* functions fire. It's completely useless.

```
<ajaxToolkit:AjaxFileUpload ID="AjaxFileUpload1" runat="server" OnUploadComplete="AjaxFileUpload1_UploadComplete" />
```

```
protected void AjaxFileUpload1_UploadComplete(object sender, AjaxControlToolkit.AjaxFileUploadEventArgs e)
{
//Putting a breakpoint here proves it's not even getting here. None of this code gets executed.
string FilePath = "~/Uploads/AllState/FEMEA/" + DateTime.Now.Year.ToString() + "/" + Request.QueryString["AuditionsID"] + "/";
string FileDirectory = Server.MapPath(FilePath);
System.IO.Directory.CreateDirectory(FileDirectory);

string FileName = Request.QueryString["AllStateStudentID"] + "_" + ClassFunctions.FilterFilename(e.FileName);
AjaxFileUpload1.SaveAs(FileDirectory + FileName);
Response.Redirect(Request.Url.ToString());
}
```
Comments: Thank you for sharing your experience! We'll keep it in mind during our future work.

Viewing all articles
Browse latest Browse all 4356

Trending Articles



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