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

Kendo editor ,image browser create does not work

1 Answer 272 Views
Editor
This is a migrated thread and some comments may be shown as answers.
marko
Top achievements
Rank 1
marko asked on 25 Nov 2014, 11:28 AM
I am struggling to create the image on the server and display the thumbnail, I am using to call a webservice in C #, the read method is working but the other not.
already tried here in the forum and not found anything like it, if someone has any examples that I can see or some idea. the error and the following:
the data is only for testing.
$("#ContentOfPage").kendoEditor({
            tools: [
                                "insertImage"
 
            ], imageBrowser: {
                messages: {
                    dropFilesHere: "Drop files here"
                },
                transport: {
                    read: {
                        dataType: "json",
                        contentType: 'application/json; ',                   
                        type: "GET",
                        url: findRelativeBasePath() + "WebServices/Actions/Pages_fe_actions.svc/Pulls_Pages_fe"
                    
 
                    },
                    create: {                     
                        type: "POST",
                        url: findRelativeBasePath() + "WebServices/Actions/Pages_fe_actions.svc/Push_Pages_fe",
                        data : {"name":"111.JPG","type":"f","size":"6832"}
                  
                    },
                    thumbnailUrl: {                  
                        url: findRelativeBasePath() + "WebServices/Actions/Pages_fe_actions.svc/Push_Pages_fe",
                        data :  { formValues : ""}
                  
                    },             
                    uploadUrl: {                      
                        type: "POST",
                        url: findRelativeBasePath() + "WebServices/Actions/Pages_fe_actions.svc/Push_Pages_fe"   ,
                        data :  { formValues : ""}           
                      
                    },
                   
                    imageUrl: "../Images/{0}",
                    path: "../Images/"
 
                     
                }
            }
        });

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 27 Nov 2014, 09:49 AM
Hi Mark,

The problem seems related to the server-side implementation. Have you tried debugging it? Is the file uploaded successfully? Is it saved to the desired folder successfully? Is the server response in accordance with the documentation?

http://docs.telerik.com/kendo-ui/web/editor/imagebrowser#configuring-the-imagebrowser

Regards,
Dimo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Editor
Asked by
marko
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or