//>>built
define("dojox/form/uploader/_IFrame","dojo/query dojo/dom-construct dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/dom-form dojo/request/iframe".split(" "),function(m,d,g,n,h,p,k){return g("dojox.form.uploader._IFrame",[],{postMixInProperties:function(){this.inherited(arguments);"iframe"===this.uploadType&&(this.uploadType="iframe",this.upload=this.uploadIFrame)},uploadIFrame:function(b){var f={};this.getForm();var l=this.getUrl(),e=this;b=b||{};b.uploadType=this.uploadType;var c=d.place('\x3cform enctype\x3d"multipart/form-data" method\x3d"post"\x3e\x3c/form\x3e',
this.domNode);h.forEach(this._inputs,function(a,q){""!==a.value&&(c.appendChild(a),f[a.name]=a.value)},this);if(b)for(nm in b)void 0===f[nm]&&d.create("input",{name:nm,value:b[nm],type:"hidden"},c);k.post(l,{form:c,handleAs:"json",content:b}).then(function(a){d.destroy(c);if(a.ERROR||a.error)e.onError(a);else e.onComplete(a)},function(a){d.destroy(c);e.onError(a)})}})});