{"action":"opened","issue":{"url":"https://api.github.com/repos/kartik-v/bootstrap-fileinput/issues/150","labels_url":"https://api.github.com/repos/kartik-v/bootstrap-fileinput/issues/150/labels{/name}","comments_url":"https://api.github.com/repos/kartik-v/bootstrap-fileinput/issues/150/comments","events_url":"https://api.github.com/repos/kartik-v/bootstrap-fileinput/issues/150/events","html_url":"https://github.com/kartik-v/bootstrap-fileinput/issues/150","id":55850252,"number":150,"title":"Ajax upload with Python Flask","user":{"login":"rodriga","id":3760577,"avatar_url":"https://avatars.githubusercontent.com/u/3760577?v=3","gravatar_id":"","url":"https://api.github.com/users/rodriga","html_url":"https://github.com/rodriga","followers_url":"https://api.github.com/users/rodriga/followers","following_url":"https://api.github.com/users/rodriga/following{/other_user}","gists_url":"https://api.github.com/users/rodriga/gists{/gist_id}","starred_url":"https://api.github.com/users/rodriga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodriga/subscriptions","organizations_url":"https://api.github.com/users/rodriga/orgs","repos_url":"https://api.github.com/users/rodriga/repos","events_url":"https://api.github.com/users/rodriga/events{/privacy}","received_events_url":"https://api.github.com/users/rodriga/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-29T03:03:40Z","updated_at":"2015-01-29T03:03:40Z","closed_at":null,"body":"Hello, I am trying to use the uploader within a wizard, so I need the upload button to act like the \"next\" button of the wizard which I've been able to do with the following:\r\n\r\n` $(\"#input-25\").fileinput({\r\nuploadClass : 'btn btn-primary btn-next'\r\n});`\r\n\r\nbut I need it's click function to do this:\r\n\r\n ```\r\n$(\"[title='Upload selected files']\").click(function () {\r\n        var form_data = new FormData($('#uploadform')[0]);\r\n        console.log(form_data);\r\n        $.ajax({\r\n            type: 'POST',\r\n            url: '/uploadajax',\r\n            data: form_data,\r\n            contentType: false,\r\n            processData: false,\r\n            dataType: 'json'\r\n        }).done(function (data) {\r\n            console.log(\"got data\");\r\n            $('#hashtags').text(data['hashtags']);\r\n            $('#abstract_id').text(data['abstract_id']);\r\n\r\n            for (var i = 0; i < data['tokenized_text'].length; i++) {\r\n                setOutputColor(data['tokenized_text'][i], data['highlighted_text'])\r\n            }\r\n\r\n        }).fail(function (data) {\r\n            alert(data);\r\n        });\r\n    }); \r\n```\r\n\r\nWhich takes care of populating the next page of the wizard with the information from the call, but this is not happening. It tries to go to a different url that doesn't have a GET method. Could you tell me what I am doing wrong?"}}