Easiest way to implement the 1mb limitation on file upload. Do I use event handler to take care of this or javascript? I can have the event handler ready as I have messed with it before. It is better to handle it with javascript? Please suggest.
Edited: I got this far from a blog.
<script type="text/javascript">
var FSO = new ActiveXObject("Scripting.FileSystemObject");
var input_File = document.aspnetForm.ctl00_PlaceHolderMain_ctl01_ctl02_InputFile.value;
var uploaded_file = FSO.getFile(input_File);
var file_size = uploaded_file.size; //size in bytes
</script>