Re: Can I limit the upload size of all files ?

  •  12-28-2009, 11:08 PM

    Re: Can I limit the upload size of all files ?

    Dear yakar,
     
    Please use the following code:
     
    function CuteWebUI_AjaxUploader_OnSelect(files)
     {
        alert("CuteWebUI_AjaxUploader_OnSelect");
         for(var i=0;i<files.length;i++)
         {
               alert(files[i].FileSize);
               size +=  files[i].FileSize;
         }  
           count+=files.length;
           alert("you selected "+count+" files");
           alert("total size" + size);  
           if(size>200*1024*1024)
          {
                  alert("the maximum alowed size of all the file is 200M ");
          }
     }
     
    Regards,
    Eric
View Complete Thread