text: define("util/uploadFile",[],function(a){"use strict";var e;return e=function(a,e){var n,o,t,r,d,u,i=[];if(a=a||[],a.constructor===File&&(a=[a]),t=a.length,0!==t)for(u=t,n={name:"file",url:window.basePath+"fileupload/uploadLocalImage"},e=$.extend(n,e),e.data=e.data||{},o=0;t>o;++o)d=a[o],r=new window.FormData,$.each(e.data,function(a,e){r.append(a,e)}),r.append(e.name,d,d.name),function(n){$.ajax({url:e.url,method:"POST",data:r,contentType:!1,processData:!1,dataType:"json",success:function(o){o.name=a[n].name,i.push(o),u--,0>=u&&e.end&&e.end(i)},error:function(){e.error&&e.error()}})}(o)},window.uploadFile=e,e});