Web Developer Framework 4.0 Sample Questions – 4

Question: You are implementing a Web page that allows users to upload files to a Web server. The page includes a form that has a Submit button. You need to reject files larger than 1 MB. What should you do? Add an HTML input type= file control. Add an onSubmit handler to the form to check the file size and cancel the form submission if the file size is too large. Add an HTML input type= file control. Add an onChange handler to the input control to check the file size and cancel the upload if the file size is … Click here to continue reading.