{"id":2501,"date":"2022-08-30T15:25:23","date_gmt":"2022-08-30T15:25:23","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/01\/27\/custom-upload-button-for-kendo-not-working-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:25:23","modified_gmt":"2022-08-30T15:25:23","slug":"custom-upload-button-for-kendo-not-working-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/custom-upload-button-for-kendo-not-working-collection-of-common-programming-errors\/","title":{"rendered":"Custom upload button for Kendo not working-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m trying to use a custom button instead of the default Kendo upload button.<\/p>\n<p>So i placed a custom button on the page with the following Javascript code:<\/p>\n<pre><code>$(function () {\n    $(document).on('click', '#upload-button', function () {\n        $('#upload').click();\n    });\n\n    $(\"#upload\").kendoUpload({\n        async: {\n            saveUrl: '@Url.Action(\"Submit\")',\n            autoUpload: true\n        }\n    });\n});\n<\/code><\/pre>\n<p>When i click my custom button then a Browse dialog appears, which is good. But when i select a file then it should start the upload. But then it crashes with the following error message:<\/p>\n<pre><code>Unhandled exception at line 8, column 376125 in http:\/\/localhost:9001\/Scripts\/kendo_web_min.js\n\n0x80070005 - JavaScript runtime error: Access is denied.\n<\/code><\/pre>\n<p>Is there a way i can make this work?<\/p>\n<p id=\"rop\"><small>Originally posted 2014-01-27 08:39:54. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I&#8217;m trying to use a custom button instead of the default Kendo upload button. So i placed a custom button on the page with the following Javascript code: $(function () { $(document).on(&#8216;click&#8217;, &#8216;#upload-button&#8217;, function () { $(&#8216;#upload&#8217;).click(); }); $(&#8220;#upload&#8221;).kendoUpload({ async: { saveUrl: &#8216;@Url.Action(&#8220;Submit&#8221;)&#8217;, autoUpload: true } }); }); When i click my custom button then [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2501","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2501","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2501"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2501\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2501"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2501"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2501"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}