{"id":6027,"date":"2014-04-12T00:28:55","date_gmt":"2014-04-12T00:28:55","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/12\/blueimp-jquery-file-upload-returning-html-instead-of-json-collection-of-common-programming-errors-2\/"},"modified":"2014-04-12T00:28:55","modified_gmt":"2014-04-12T00:28:55","slug":"blueimp-jquery-file-upload-returning-html-instead-of-json-collection-of-common-programming-errors-2","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/12\/blueimp-jquery-file-upload-returning-html-instead-of-json-collection-of-common-programming-errors-2\/","title":{"rendered":"Blueimp jQuery File Upload returning html instead of json-Collection of common programming errors"},"content":{"rendered":"<p>I downloaded the blueimp Jquery-File-Upload plugin, and outside of configuring it to use my server ( in js\/main.js ) and changing the premissions on the upload directory it is the default.<\/p>\n<p>When I select a file and click upload in chrome it says:<\/p>\n<pre><code>Error SyntaxError: Unexpected token &lt;\n<\/code><\/pre>\n<p>In firefox it says:<\/p>\n<pre><code>Error SyntaxError: JSON.parse: unexpected character\n<\/code><\/pre>\n<p>I examined the difference between using it on my server and on the demo server, on my server in firebug the POST return is the entire index.html:<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I downloaded the blueimp Jquery-File-Upload plugin, and outside of configuring it to use my server ( in js\/main.js ) and changing the premissions on the upload directory it is the default. When I select a file and click upload in chrome it says: Error SyntaxError: Unexpected token &lt; In firefox it says: Error SyntaxError: JSON.parse: [&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-6027","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6027","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=6027"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6027\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6027"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6027"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6027"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}