I would like to display the size of the file that was chosen via the Browse button of the FileUpload control.
Ideally, this value is displayed immediately after the user chooses the file but BEFORE the "Upload File" Button is clicked.
I have and on a webform. The Button looks like this:
<asp:Button ID="UploadButton" runat="server" onclick="UploadButton_Click" Text="Upload File"/>
The onclick event for the button control results in a postback and the file is uploaded.
I know how to get the size of the file but not before the Upload File button is clicked and a postback occurs.
Is there an event associated with the FileUpload web control that could submit the form (i.e. postback) without the clicking of the button?
The whole intent is that I want to give the user a feel for how long the upload might take...set a different expection for a 10mb file than for a 2kb file, etc.).