Re: How to validate a file being uploaded across a SQL db?

  •  12-31-2012, 11:18 AM

    Re: How to validate a file being uploaded across a SQL db?

    Hi,

     

    1. <script>     
    2.     function CuteWebUI_AjaxUploader_OnSelect(files) {    
    3.         for (var i = 0; i < files.length; i++) {    
    4.             var name = files[i].FileName;    
    5.             var extension=files[i].FileName.substring(files[i].FileName.lastIndexOf("."));  
    6.             var nameNoExtension=files[i].FileName.substring(0,files[i].FileName.lastIndexOf("."));  
    7.             alert(extension);    
    8.             alert(nameNoExtension);  
    9.         }     
    10.     }     
    11. </script>     
     

    Regards,

     

    Ken 

View Complete Thread