Invalid characters in folder name error for ImageManager dialog

14 posts, 0 answers
  1. Sups
    Sups avatar
    24 posts
    Member since:
    Jul 2007

    Posted 02 Feb 2011 Link to this post

    Hello,

    I am using Telerik Q3 2010 for Asp.net Ajax.
    While opening ImageManager dialog of radeditor it is giving following javascript alert/error...
    "Invalid Characters in Folder Name"

    Here is how I pass the paths for imagemanager...

    radEditor1.ImageManager.DeletePaths = "~/Upload/38920/"
    radEditor1.ImageManager.UploadPaths = "~/Upload/38920/"
    radEditor1.ImageManager.ViewPaths = "~/Upload/38920/"

    Please reply how to get rid of this js alert/error.

    Thanks in advance

  2. Martin
    Martin avatar
    199 posts
    Member since:
    Oct 2005

    Posted 04 Feb 2011 Link to this post

    I'm experiencing the same problem, but with a RadFileExplorer control.
    This message was not shown with previous versions of the RadControls, but I don't know exactly since which version the problem exists.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 04 Feb 2011 Link to this post

    Hello,

    Supriya, ImageManager's ViewPaths / UploadPaths / DeletePaths properties expects a string array as their values, and the provided configuration should throw a server error and will prevent the page to load at all. Could you please verify if this is the exact configuration?

    Martin, regarding the RadFileExplorer, you may experience this behavior if you are setting InitialPath property with a virtual path (i.e. ~/Folder1 ). InitialPath property expects its value to match the path displayed in the RadFileExplorer's AddressBar, e.g.:

    RadFileExplorer1.InitialPath = "/Folder1";

    In previous versions of RadFileExplorer this was possible due to a bug which is now fixed. If this is not the case, could you please provide more detailed information on the specific scenario?

    Regards,
    Dobromir
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  5. Martin
    Martin avatar
    199 posts
    Member since:
    Oct 2005

    Posted 04 Feb 2011 Link to this post

    Dobromir, this was exactly the problem in my case (I just found it in this forum post:

    http://www.telerik.com/community/forums/aspnet-ajax/file-explorer/invalid-characters-in-folder-name.aspx

    ).

    I was not able to find out in what format exactly the InitialPath property should be set. But in my case, simply leaving the property empty seems to work.
  6. Sups
    Sups avatar
    24 posts
    Member since:
    Jul 2007

    Posted 04 Feb 2011 Link to this post

    Hello Dobromir,

    Thanks for the reply...

    But we do pass the paths as string array..

    Dim

     

     

    iPath As String() = {"~/Upload/38920/"}

    and then pass iPath to the Imagemanager paths.

    Thanks,
    Supriya

     

  7. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 09 Feb 2011 Link to this post

    Hi Supriya,

    I tried to reproduce the problem on my side but to no avail. To be able to provide more-to-the-point answer to the issue, we will need to be able to reproduce it and debug it locally. Could you please provide a sample runnable project reproducing the problem so we can investigate it further?

    All the best,
    Dobromir
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  8. tiffany
    tiffany avatar
    3 posts
    Member since:
    Jan 2011

    Posted 07 Mar 2011 Link to this post

    I have this problem too. I am using "RadControls for ASP.NET AJAX Q3 2010". This did not happen in the previous version.
    When I click on the image, then click ImageManager button, this message pop up "Invalid characters in folder name". Any one can help?
  9. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 10 Mar 2011 Link to this post

    Hello Tiffany,

    Could you please open a formal support ticket and provide a sample project reproducing the problem? Also, which was the previous version that you have used where this problem did not occur?

    Regards,
    Dobromir
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  10. Mark Kucera
    Mark Kucera avatar
    84 posts
    Member since:
    Sep 2009

    Posted 10 May 2011 Link to this post

    I'm curious if there is an update on this issue or if anyone has found another solution for this issue.  I'm experiencing this error in our production environment, but only sporadically.  I'm speculating that there is something going on w/ a corporate firewall that is somehow corrupting the data and causing this error.  Our scenario is that we have a number of different people who log in to our application.  Each has their own spot that they can upload files / images that is isolated from other users.  We set the *Paths in Page_Load via this method:

            public void SetImagePath(string p_AccountId)
            {
                rdeOptout.ImageManager.UploadPaths = new[] { "/ImageLibrary/account" + p_AccountId + "/images" };
                rdeOptout.ImageManager.DeletePaths = new[] { "/ImageLibrary/account" + p_AccountId + "/images" };
                rdeOptout.ImageManager.ViewPaths = new[] { "/ImageLibrary/account" + p_AccountId + "/images" };

                rdeOptout.DocumentManager.UploadPaths = new[] { "/ImageLibrary/account" + p_AccountId + "/documents" };
                rdeOptout.DocumentManager.DeletePaths = new[] { "/ImageLibrary/account" + p_AccountId + "/documents" };
                rdeOptout.DocumentManager.ViewPaths = new[] { "/ImageLibrary/account" + p_AccountId + "/documents" };
                rdeOptout.DocumentManager.SearchPatterns = new[] { "*.pdf", "*.txt", "*.csv", "*.htm", "*.html", "*.doc", "*.xls", "*.xlsx", "*.zip", "*.docx", "*.ics" };
                rdeOptout.DocumentManager.MaxUploadFileSize = 2097152; //2 meg total

                rdeOptout.TemplateManager.UploadPaths = new[] { "/ImageLibrary/account" + p_AccountId + "/templates" };
                rdeOptout.TemplateManager.DeletePaths = new[] { "/ImageLibrary/account" + p_AccountId + "/templates" };
                rdeOptout.TemplateManager.ViewPaths = new[] { "/ImageLibrary/account" + p_AccountId + "/templates" };
                rdeOptout.TemplateManager.SearchPatterns = new[] { "*.htm", "*.html" };
                rdeOptout.TemplateManager.MaxUploadFileSize = 262144; //2 meg total

                UpdatePanel1.Update();
            }

    I saw one post about using absolute path names.  And we do that.  /ImageLibrary/ IS a virtual directory configured in IIS. Almost everyone that i know that has reported this problem is using a Mac.  I don't think the browser they use matters (Safari, Chrome or FF). The reason we suspect that it's somehow firewall related is that the issue disappears for these users when they use the same computer from another location.  i.e. a Macbook or the like.  At the office they get this error, at home with the same computer and using the same login there is no error. We also know that it's not just an issue w/ Mac's as we have several that don't exhibit this problem.  We also know it isn't an issue with the account they are logging in to since we've tried logging in w/ a mac to an account exhibiting this error message from another location at the same time and it works fine.  I've really done about as much as i know how to do to narrow down this problem, and that is where we are at currently.  In summary with specific computers logging in from specific locations we can reproduce this error, however we can always have someone else in a different location login with the same type of computer, same login into the same account and there is no error.

    Thanks for any additional insight anyone might be able to provide!
    -Mark
  11. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 13 May 2011 Link to this post

    Hello Mark,

    If you want to use the Image manager with a directory placed outside of the application (/ImageLibrary/ path is pointing to a folder named ImageLibrary placed in the IIS root) , you should use the PhysicalAndSharedDrives content provider as shown in this article: http://www.telerik.com/support/kb/aspnet-ajax/fileexplorer/physical-paths-and-different-content-types.aspx.

    Best regards,
    Rumen
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  12. Alexey
    Alexey avatar
    8 posts
    Member since:
    Jun 2011

    Posted 06 Jan 2012 Link to this post

    Hi,

    >While opening ImageManager dialog of radeditor it is giving following javascript alert/error...
    >"Invalid Characters in Folder Name"

    I'm received this error in Firefox 8.0.1, when folder was empty.

    ---
    Regards,
    Alexey
  13. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 10 Jan 2012 Link to this post

    Hello,

    Could you please provide more details about your specified configuration and how to reproduce the problem on our end? Are you able to reproduce the issue with the latest version of the control? Do you use a custom file browser content provider? Are you able to reproduce the problem in the Default Example of RadEditor?

    If possible, open a support ticket and send a sample working project which demonstrates the issue. We will debug it and provide a solution / log the issue for fixing.

    Kind regards,
    Rumen
    the Telerik team
    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 their blog feed now
  14. Ravi
    Ravi avatar
    4 posts
    Member since:
    Dec 2012

    Posted 18 Dec 2012 Link to this post

    Hi,
     I am facing the same problem, when i select image in editor then click on ImageManager   "Invalid characters in folder name" popup is displaying.

    Any help?

    Thanks & Regards
    Ravi.
  15. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 20 Dec 2012 Link to this post

    Hello,

    Could you please update your RadControls to latest version (2012.3.1205) and see if the problem still occurs?

    Kind regards,
    Dobromir
    the Telerik team
    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 their blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017