function uploadSuccess(d,file,response){
$("#fileUrl").val(d.attributes.url);
$("#fileName").val(d.attributes.name);
var url = $("#fileUrl").val();
var html="";
if(url.indexOf(".gif")!=-1 ||
url.indexOf(".jpg")!=-1 ||
url.indexOf(".png")!=-1 ||
url.indexOf(".bmp")!=-1){
html += "";
}else{
html += "下载:"+d.attributes.name+"";
}
$("#fileShow").html(html);
}
function uploadCallback(callback){
var url = $("#fileUrl").val();
var name= $("#fileName").val();
callback(url,name);
}