Implemented interface member:
property
Size
Microsoft.AspNetCore.Components.Forms.IBrowserFile.Size
4 references to Size
Microsoft.AspNetCore.Components.Web (4)
Forms\InputFile\BrowserFile.cs (3)
25
throw new ArgumentOutOfRangeException(nameof(
Size
), $"Size must be a non-negative value. Value provided: {value}.");
38
if (
Size
> maxAllowedSize)
40
throw new IOException($"Supplied file with size {
Size
} bytes exceeds the maximum of {maxAllowedSize} bytes.");
Forms\InputFile\BrowserFileStream.cs (1)
44
public override long Length => _file.
Size
;