blueimp/jQuery-File-Upload — Issue #1027: Fix SyntaxError: Unexpected token <
Author: Leafire1
Created: 2012-02-17 15:25:24+00:00
State: open

to load the rar files I modified this code in main.js,but when I load a png or a zip tells me "SyntaxError: Unexpected token <"
how can I fix?

$('#fileupload').fileupload();

if (window.location.hostname === 'sitename.altervista.org') {
// Demo settings:
$('#fileupload').fileupload('option', {
url: '//sitename.altervista.org/',
maxFileSize: 5000000,
acceptFileTypes: /(\.|\/)(gif|jpe?g|png|rar)$/i,
resizeMaxWidth: 1920,
resizeMaxHeight: 1200
});
// Upload server status check for browsers with CORS support:
if ($.ajaxSettings.xhr().withCredentials !== undefined) {
$.ajax({
url: '//jquery-file-upload.appspot.com/',