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

[Solved] ImageManager: SearchPattern vs. Upload

3 Answers 176 Views
Editor
This is a migrated thread and some comments may be shown as answers.
FredVDH
Top achievements
Rank 1
FredVDH asked on 27 Jul 2009, 07:29 AM
Hello,

Please tell me what I'm doing wrong. I'm using the SearchPattern of an ImageManager, to limit the extensions to a folder.
I use the * character for easily recognizing extensions (*.jp*). This works for showing the files, but when I try to upload a file with extension .jpg, I get a message saying "The extension of the upload file is not valid. Please, provide a valid file!"

Here is my code:
RadEditor1.ImageManager.ViewPaths = new string[] { "~/Upload/Images" };  
RadEditor1.ImageManager.UploadPaths = new string[] { "~/Upload/Images" };  
RadEditor1.ImageManager.DeletePaths = new string[] { "~/Upload/Images" };  
RadEditor1.ImageManager.SearchPatterns = new string[] { "*.jp*""*.gif""*.png""*.bmp" }; 

Any ideas?

3 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 29 Jul 2009, 11:19 AM
Hi Frederick,

The *.jp* syntax is not supported. You can use the asterisk * symbol only inside the file name but not in the file extension, e.g.

*.ext

Regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
FredVDH
Top achievements
Rank 1
answered on 29 Jul 2009, 11:32 AM
Thanks for the reply ! But in this case, I guess you'll have to update your help pages ...

See

SearchPatterns A string array which contains the file extension filters that controls which files are shown in the Image Manager dialog.  
 
The * character can be used as a wildcard in the extension, for example *.jp* will match *.jpg, *.jpeg and any other extension which starts with jp. 


on this page
0
Rumen
Telerik team
answered on 29 Jul 2009, 11:48 AM
Hi Frederick,

Thank you for pointing this misleading information in the help. I will update it right away.

I have also updated your Telerik points for your report.


Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
FredVDH
Top achievements
Rank 1
Answers by
Rumen
Telerik team
FredVDH
Top achievements
Rank 1
Share this question
or