var langcode="php"; function showupload(a,b){ tid="#"+a; processid=getid(); $(tid).parent().append(""); $("#testfile"+a).trigger("click"); } function aaa(a,b){ var fileobj = document.getelementbyid("testfile"+a).files[0]; var form = new formdata(); form.append("file"+processid, fileobj); filename=fileobj.name; filesize=fileobj.size; $.ajax({ url: "upload/upload."+langcode+"?path="+b.replace("..","@@")+"&processid=an"+processid+"&id="+a, type: 'post', data: form, async: false, cache: false, contenttype: false, processdata: false, success: function (msg) { console.log(msg); if(msg.substr(0,4)=="http"){ $(tid+"x").attr("src",msg); $(tid+"x").attr("alt","