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

  •  04-18-2013, 4:04 AM

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

    mskhan:

    Also, can you tell me if this would work to grab the filename without the extension?

     

    1. for (var i = 0; i < files.length; i++) {  
    2.       var name = files[i].FileName;  
    3.       var extension = System.IO.Path.GetfileNameWithoutExtension(file[i].FileName);  
    4.          var extensionless = name.substring(0, name.Length - extension.Length);  
    5.          alert(extensionless);  
    6.                               
    7.      }  
     Hasn't worked me.

     

    same issue here, I've tried this one but it works here in my end.. maybe you got mistake to some things.

     

    regards,

    faxxx 

View Complete Thread