0
$("#imgBrowser").kendoEditor({
    tools: [
        "insertImage"
    ],
    imageBrowser: {
        messages: {
            dropFilesHere: "Drop files here"
        },

        transport: {
            read: "/ImageBrowser/Read",
            destroy: {
                url: "/ImageBrowser/Destroy",
                type: "POST"
            },
            create: {
                url: "/ImageBrowser/Create",
                type: "POST"
            },
            thumbnailUrl: "/ImageBrowser/Thumbnail",
            uploadUrl: "/ImageBrowser/Upload",
            imageUrl: "~/ImageGallery//Image?path={0}"
        },
        change: function () {
            //this.value(); //Selected image URL
        },
        select: function () {
        }
    }, execute: function (e) {           
    },
    change: function () {
    },
    select: function () {


    }
});

我是剑道控制的新手。我想将图像保存在我的项目文件夹中。我正在使用此代码,但它没有调用控制器操作,但是当我上传图像时它正在提供。图像也没有保存在它始终显示加载图标的文件夹中。当我上传任何图像时,它会显示以下错误。

  Error! Requested Url returned 405 - method not allowed

请帮助我如何解决此错误。以及如何将上传的图像保存到我的项目文件夹中。

4

1 回答 1

0

您应该更改您的应用程序 web.config,此链接可帮助您完成

http://www.asp.net/web-api/overview/testing-and-debugging/troubleshooting-http-405-errors-after-publishing-web-api-applications

于 2016-06-17T09:57:15.033 回答