How to Change Upload File Foder?

4 posts, 0 answers
  1. Oliver
    Oliver avatar
    39 posts
    Member since:
    Jun 2010

    Posted 01 Jun 2010 Link to this post

    hello
    i use this code in load my page:

            If Not IsPostBack Then
                Dim strPath = "~/Attach"
                RadFileExplorer1.Configuration.SearchPatterns = New String() {"*.*"}
                RadFileExplorer1.Configuration.ViewPaths = New String() {strPath}
                RadFileExplorer1.Configuration.UploadPaths = New String() {strPath}
                RadFileExplorer1.Configuration.DeletePaths = New String() {strPath}
            End If

    but, i will change this Folder "~/Attach" to "~/Attach2" in a Button .
    same :

        Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
            Dim strPath = "~/Attach2"
            RadFileExplorer1.Configuration.SearchPatterns = New String() {"*.*"}
            RadFileExplorer1.Configuration.ViewPaths = New String() {strPath}
            RadFileExplorer1.Configuration.UploadPaths = New String() {strPath}
            RadFileExplorer1.Configuration.DeletePaths = New String() {strPath}
        End Sub

    but, i can not changing default folder!
    please help me.
  2. Oliver
    Oliver avatar
    39 posts
    Member since:
    Jun 2010

    Posted 01 Jun 2010 Link to this post

    hi to all and admin
    my error  is a Bug in telerik?
    please answer me.
    thank u.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Oliver
    Oliver avatar
    39 posts
    Member since:
    Jun 2010

    Posted 01 Jun 2010 Link to this post

    Please Help me for this problem.
  5. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 04 Jun 2010 Link to this post

    Hello Ebrahim,

    Page_Load is the latest event, where you can set the paths properties of the RadFileExplorer control. The OnClick event of a Button control is fired after the Page_Load event, however. This is why, I recommend you to use the approach shown in the attached demo. Could you please check it and let me know whether it fits your requirements?

    I hope this helps.

    All the best,
    Fiko
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top