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:
Any ideas?
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?
