2 implementations of Size
Microsoft.AspNetCore.Components.Endpoints (1)
FormMapping\BrowserFileFromFormFile.cs (1)
16public long Size => formFile.Length;
Microsoft.AspNetCore.Components.Web (1)
Forms\InputFile\BrowserFile.cs (1)
18public long Size
7 references to Size
Microsoft.AspNetCore.Components.Endpoints.Tests (6)
Binding\FormDataMapperTests.cs (6)
2499Assert.Equal(expectedString.Length, browserFile.Size); 2500var buffer = new byte[browserFile.Size]; 2534Assert.Equal(expectedString1.Length, browserFile1.Size); 2535var buffer1 = new byte[browserFile1.Size]; 2541Assert.Equal(expectedString2.Length, browserFile2.Size); 2542var buffer2 = new byte[browserFile2.Size];
Microsoft.AspNetCore.Components.Web (1)
Forms\InputFile\IBrowserFile.cs (1)
41/// will throw if the file's size, as specified by <see cref="Size"/> is larger than