function getFileSize(fileObject){ var image=new Image(); image.dynsrc=fileObject.value; return image.fileSize; }