You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: controls/asyncupload/how-to/how-to-extend-the-radasyncupload-handler.md
+26-31Lines changed: 26 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,42 +23,37 @@ This article contains the following sections:
23
23
24
24
To create a custom handler, you must inherit the built-in `AsyncUploadHandler` class and then implement the desired functionality (for example, saving images directly to a database, without using temporary folder).
25
25
26
-
1. Create a generic handler in your Web Application (for example, `myHandler.ashx`)
27
-
28
-
1. Make sure the class extends the `Telerik.Web.UI.AsyncUploadHandler` class
29
-
30
-
**C#**
31
-
32
-
public class myHandler : Telerik.Web.UI.AsyncUploadHandler
26
+
1. Create the Custom Handler
27
+
28
+
1. Create a generic handler in your Web Application (for example, `myHandler.ashx`)
29
+
30
+
1. Make sure the class extends the `Telerik.Web.UI.AsyncUploadHandler` class
31
+
32
+
1. Override the `Process` method
33
+
34
+
````C#
35
+
public class CustomUploadHandler : AsyncUploadHandler
Protected Overrides Function Process(ByVal file As UploadedFile, ByVal context As HttpContext, ByVal configuration As IAsyncUploadConfiguration, ByVal tempFileName As String) As IAsyncUploadResult
0 commit comments