This is a migrated thread and some comments may be shown as answers.

Changing the name of the file with session variables or Request.QueryString

4 Answers 107 Views
CloudUpload
This is a migrated thread and some comments may be shown as answers.
Geraldo Santos
Top achievements
Rank 1
Geraldo Santos asked on 10 Dec 2013, 04:13 PM
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

4 Answers, 1 is accepted

Sort by
0
Peter Filipov
Telerik team
answered on 12 Dec 2013, 08:48 AM
Hello Geraldo,

Please review my answer in the following post. In order to avoid duplication of the thread, please continue the conversation in one of them.

Regards,
Peter Filipov
Telerik
 
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
 
0
Geraldo Santos
Top achievements
Rank 1
answered on 12 Dec 2013, 02:25 PM
Perfect resolved.

Thank you very much for attention.

Greetings.
0
Marcus
Top achievements
Rank 1
answered on 20 Feb 2015, 11:57 AM
The link what you post are brocked: 
http://www.telerik.com/forums/www.telerik.com/community/forums/aspnet-ajax/cloud-upload/change-name-of-file-before-uploading-to-azure.aspx

Than, next post says ithis solve the problem I need it. 

Tanks     
0
Peter Filipov
Telerik team
answered on 23 Feb 2015, 09:39 AM
Hello Geraldo,

You could the link here:
http://www.telerik.com/forums/change-name-of-file-before-uploading-to-azure

Regards,
Peter Filipov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
CloudUpload
Asked by
Geraldo Santos
Top achievements
Rank 1
Answers by
Peter Filipov
Telerik team
Geraldo Santos
Top achievements
Rank 1
Marcus
Top achievements
Rank 1
Share this question
or