hi! i have the same problem, i using ASP.net, i think this code helpful for you
function A() { var oas = new ActiveXObject("Scripting.FileSystemObject"); var d = document.getElementById('<%= fileUpLoad.ClientID %>').value; var e = oas.GetFile(d); var f = e.size; alert(f + " bytes");
}
<asp:FileUpload ID="fileUpload" runat="server"/>
<asp:button Id="btn" runat="server" OnClientClick="A();" />
i tested it, but it work properly without masterpage
|