Permalink
Browse files

[-] BO : Undefined on image upload, revert of 48b7a49

  • Loading branch information...
gRoussac committed Nov 25, 2013
1 parent fa05975 commit 2a1c991612c7b7d48f819b55f31218c93c5509fd
Showing with 2 additions and 1 deletion.
  1. +2 −1 js/fileuploader.js
View
@@ -1072,7 +1072,8 @@ qq.extend(qq.UploadHandlerXhr.prototype, {
var queryString = qq.obj2url(params, this._options.action);
xhr.open("POST", queryString, true);
- xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded");
+ xhr.setRequestHeader("Content-Type", "application/octet-stream");
+ xhr.setRequestHeader("processData", false);
xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");
xhr.setRequestHeader("X-File-Name", encodeURIComponent(name));
xhr.send(file);

0 comments on commit 2a1c991

Please sign in to comment.