Hi,
always file.FileSize returning -1 in firefox
function CuteWebUI_AjaxUploader_OnSelect(files)
{
for(var i=0;i<files.length;i++)
{
var file=files[i];
if(file.FileSize!=-1)
{
if(file.FileSize>2147483648)
{
alert(file.FileName+ " ( " + Math.round((file.FileSize/1073741824)*Math.pow(10,2))/Math.pow(10,2) +"GB ) is too large. The maximum file size allowed is 2GB");
return false;
}
}
}
}