var uploadsuccess = function (newpath, upload,vals) {
$(document).off("click", ".again")
$("#" + upload).addClass("again-box")
$("#" + upload + " .ViewSpan").html("查看 重新上传").show();
$("#" + upload + " iframe").hide();
$("#Filedown").val(newpath)
// $("#" + upload + " .view").html(newpath);
//jpg,jpeg,png,zip,rar,zip,doc,docx,pdf,mp4
var location=vals;
var point = location.lastIndexOf(".");
var type = location.substr(point);
if(type==".jpg"||type==".gif"||type==".png"||type==".jpeg"){
$("#" + upload + " .view img").attr('src',vals);
}
if(type==".zip"){
$("#" + upload + " .view img").attr('src','/images/zip.jpg');
}
if(type==".rar"){
$("#" + upload + " .view img").attr('src','/images/rar.jpg');
}
if(type==".doc"||type==".docx"){
$("#" + upload + " .view img").attr('src','/images/doc.jpg');
}
if(type==".pdf"){
$("#" + upload + " .view img").attr('src','/images/pdf.jpg');
}
if(type==".mp4"){
$("#" + upload + " .view img").attr('src','/images/mp4.jpg');
}
$("#" + upload + " .view").attr('href',vals);
//$("#" + upload + " #Filedown").blur();
$(document).on("click", "#" + upload + " .again", function () {
$("#" + upload).removeClass("again-box")
$("#" + upload).find("iframe").attr('src', '/plugin/FileManage/UploadImg.aspx?id=' + upload + '');
$("#" + upload).find("iframe").show();
$("#" + upload).find(".ViewSpan").html('').hide();
$("#Filedown").val('');
})
};