{"id":5943,"date":"2014-04-10T08:53:59","date_gmt":"2014-04-10T08:53:59","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/10\/blueimp-jquery-file-upload-returning-html-instead-of-json-collection-of-common-programming-errors\/"},"modified":"2014-04-10T08:53:59","modified_gmt":"2014-04-10T08:53:59","slug":"blueimp-jquery-file-upload-returning-html-instead-of-json-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/10\/blueimp-jquery-file-upload-returning-html-instead-of-json-collection-of-common-programming-errors\/","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-5943","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5943","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=5943"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5943\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5943"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5943"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5943"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}