PHP中文网2017-04-11 09:12:46
<script type="text/javascript">
function UploadCompleteClient(sender, args) {
var filesize = args.get_fileSize();
var fileId = args.get_fileId();
var status = document.getElementById('AjaxFileUpload1_FileItemStatus_' + fileId);
if (parseInt(filesize) > fileSizeLimit) {
alert("file exceeds file size limit");
if (status.innerText) {
status.innerText = " file exceeds file size limit ";
}
if (status.textContent) {
status.textContent = " file exceeds file size limit ";
}
}
}
</script>