Hi FLJoe,
Please try the example below
- <%@ Page Language="C#" %>
-
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head runat="server">
- <title>Untitled Page</title>
- </head>
- <body>
- <form id="form1" runat="server">
- <CuteWebUI:UploadAttachments ID="uploader1" runat="server" >
- </CuteWebUI:UploadAttachments>
- </form>
- </body>
- </html>
- <script>
- function CuteWebUI_AjaxUploader_OnSelect(files)
- {
-
- var maxLimit=1000000;
-
- var sum=0;
- for(var i=0;i<files.length;i++)
- {
- sum=sum+files[i].FileSize;
- }
- if(sum>maxLimit)
- {
- alert("Exceeded the maximum upload size limit");
- return false;
- }
- }
- </script>
Regards,
ken