I'm a javascript-writing novice...
Ben posted this on JavaScript file upload size validation that I'm using to detect pre-upload file size. Is there a way to insert some (math) function directly into the code that will limit the file size to two decimal places when the alert is presented?
<script type="text/javascript">
$('#image-file').bind('change', function() {
alert('This file size is: ' + this.files[0].size/1024/1024 + "MB");
});
</script>