private IResult Test(IFormFile file) //Dosya boyutu ne? { //var sourcepath = Path.GetTempFileName(); //FileInfo fileInfo = new FileInfo(sourcepath); //long fileLength = fileInfo.Length; return(new ErrorResult("Dosya boyutu : " + FileLength.CalculateLength(file.Length))); }