0
林uplaoding文件到Amazon S3:道場的iframe負荷不叫
var d = dojo.io.iframe.send ({
url: url,
contentType: "multipart/form-data",
method: "POST",
form: this._form.domNode,
handleAs: "text",
load: dojo.hitch(this, function (respText) {
alert(1)
this.showLoading(false);
this.onSuccess(this.nodeFormName.value);
}),
error: dojo.hitch(this, function (err) {
console.log("err", err)
this.showError(err);
})
}, true);
我可以通過使用嗅探器文件上傳完畢看到(和文件確實是在S3鬥)但「負載」或「錯誤」回調函數永遠不會被調用。通過嗅探器,我可以看到響應代碼是204「無內容」,我認爲它可能是問題的根源。任何人有類似的問題或知道如何解決它?