I need to change the file name based on a parameter passed by url
but the class does not allow me to access the request.
how can I get access to session variables or passed in the url within the parameters Telerik.Web.UI.CloudUploadHandler class?
see my code below.
Imports System
Imports System.Web
Imports System.Web.Services
Public Class vendedores_img : Inherits Telerik.Web.UI.CloudUploadHandler
Public Overrides Sub SetKeyName(sender As Object, e As Telerik.Web.UI.CloudUpload.SetKeyNameEventArgs)
e.KeyName = "vendedores-img-pg/" & e.OriginalFileName
End Sub
Public Overloads Sub ProcessRequest(context As System.Web.HttpContext) ' *** Not that performing this procedure ***
Dim vID As String = context.Request.QueryString("ContaID")
e.KeyName = vID
' *** Not that performing this procedure ***
End Sub
End Class
but the class does not allow me to access the request.
how can I get access to session variables or passed in the url within the parameters Telerik.Web.UI.CloudUploadHandler class?
see my code below.
Imports System
Imports System.Web
Imports System.Web.Services
Public Class vendedores_img : Inherits Telerik.Web.UI.CloudUploadHandler
Public Overrides Sub SetKeyName(sender As Object, e As Telerik.Web.UI.CloudUpload.SetKeyNameEventArgs)
e.KeyName = "vendedores-img-pg/" & e.OriginalFileName
End Sub
Public Overloads Sub ProcessRequest(context As System.Web.HttpContext) ' *** Not that performing this procedure ***
Dim vID As String = context.Request.QueryString("ContaID")
e.KeyName = vID
' *** Not that performing this procedure ***
End Sub
End Class