fileBrowser.transport.fileUrl String|Function

The URL responsible for serving the original file. A file name placeholder should be specified. By default the placeholder value is URL encoded. If this is not desired, use a function.

Example - fileUrl as String

<textarea id="editor"></textarea>
<script>
$("#editor").kendoEditor({
  tools: [
    "insertFile"
  ],
  fileBrowser: {
    transport: {
      fileUrl: "/content/files/{0}" //the placeholder will be replaced with the current virtual path and selected file name
    }
  }
});
</script>

Example - fileUrl as Function (can be used to avoid automatic URL encoding)

<textarea id="editor"></textarea>
<script>
$("#editor").kendoEditor({
  tools: [
    "insertFile"
  ],
  fileBrowser: {
    transport: {
      fileUrl: function (e) {
        return "/content/files/" + e;
    }
  }
});
</script>
In this article
Not finding the help you need?