Re: Maximum file size under IIS7 and custom oversize warning

  •  08-08-2009, 9:26 PM

    Re: Maximum file size under IIS7 and custom oversize warning

    Hi,
     
    2G limit is per file.
     
    You can use the OnSelect event to show the custom error message :
     
     <script type="text/javascript">
     function CuteWebUI_AjaxUploader_OnSelect(files)
     {
      for(var i=0;i<files.length;i++)
      {
       var file=files[i];
       if(file.FileSize!=-1)
       {
        if(file.FileSize>102400)
        {
           alert(file.FileName+" is larger then 100K");
           return false;
        }
       }
      }
     }
     </script>
     
    Regards,
    Terry
View Complete Thread