jQuery ファイルのアップロード:
$('#fileupload').fileupload({
xhrFields: {withCredentials: true},
url: 'http://URL/images/pre/',
add: function (e, data) {
var that = this;
$.ajax({
type : 'get',
url : 'http://URL/images/pre/',
dataType : 'jsonp',
jsonp : 'jsonp',
success : function(result) {
url = result.url.replace(...);
data.url = url;
data.submit();
}
});
}
});
data.submit() は POST を appengine に送信し、appengine は 302 を返します (webapp.RequestHandler からの redirect())。リダイレクト後にこの POST から応答を取得することは可能ですか?