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

Invalid characters in folder name error for ImageManager dialog

13 Answers 191 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Sups
Top achievements
Rank 1
Sups asked on 02 Feb 2011, 05:09 PM
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

13 Answers, 1 is accepted

Sort by
0
Martin
Top achievements
Rank 1
answered on 04 Feb 2011, 04:13 PM
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.
0
Dobromir
Telerik team
answered on 04 Feb 2011, 05:07 PM
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.
0
Martin
Top achievements
Rank 1
answered on 04 Feb 2011, 05:11 PM
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.
0
Sups
Top achievements
Rank 1
answered on 04 Feb 2011, 05:56 PM
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

 

0
Dobromir
Telerik team
answered on 09 Feb 2011, 10:45 AM
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.
0
tiffany
Top achievements
Rank 1
answered on 07 Mar 2011, 05:50 PM
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?
0
Dobromir
Telerik team
answered on 10 Mar 2011, 11:43 AM
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!
0
Mark Kucera
Top achievements
Rank 1
answered on 10 May 2011, 10:02 PM
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
0
Rumen
Telerik team
answered on 13 May 2011, 10:27 AM
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.

0
Alexey
Top achievements
Rank 1
answered on 06 Jan 2012, 01:39 PM
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
0
Rumen
Telerik team
answered on 10 Jan 2012, 04:47 PM
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
0
Ravi
Top achievements
Rank 1
answered on 19 Dec 2012, 05:58 AM
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.
0
Dobromir
Telerik team
answered on 20 Dec 2012, 02:14 PM
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.
Tags
Editor
Asked by
Sups
Top achievements
Rank 1
Answers by
Martin
Top achievements
Rank 1
Dobromir
Telerik team
Sups
Top achievements
Rank 1
tiffany
Top achievements
Rank 1
Mark Kucera
Top achievements
Rank 1
Rumen
Telerik team
Alexey
Top achievements
Rank 1
Ravi
Top achievements
Rank 1
Share this question
or