I can get my editor to work properly if I put it in the ASPX page, but if I try and initialize it in the code behind, I can't seem to be able to upload files. I get an error saying that my file extension is invalid.
I am trying to upload a png file.
Anyone have any thoughts?
| Private Sub InitializeEditor() |
| Dim Editor1 As New RadEditor |
| Editor1.ID = "RadEditor1" |
| Editor1.AutoResizeHeight = False |
| Editor1.EnableResize = False |
| Editor1.ToolsFile = "~/App_Assets/Other/News_Tools.xml" |
| Editor1.Width = 400 |
| Editor1.Height = 400 |
| Editor1.Skin = "Office2007" |
| Editor1.ImageManager.ViewPaths = New String() {"~/User_Assets/Images"} |
| Editor1.ImageManager.DeletePaths = New String() {"~/User_Assets/Images"} |
| Editor1.ImageManager.UploadPaths = New String() {"~/User_Assets/Images"} |
| Editor1.ImageManager.SearchPatterns = New String() {"*.jpg,*.jpeg,*.png,*.gif,*.bmp"} |
| EditorPlaceHolder.Controls.Add(Editor1) |
| End Sub |
I am trying to upload a png file.
Anyone have any thoughts?