1 implementation of Name
Microsoft.AspNetCore.Http (1)
FormFile.cs (1)
65public string Name { get; }
21 references to Name
Microsoft.AspNetCore.Http (2)
FormFileCollection.cs (2)
19if (string.Equals(name, file.Name, StringComparison.OrdinalIgnoreCase)) 35if (string.Equals(name, file.Name, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Http.Extensions.Tests (9)
RequestDelegateGenerator\RequestDelegateCreationTests.Forms.cs (9)
114Assert.Equal("file", fileArgument.Name); 152Assert.Equal("file", fileArgument.Name); 190Assert.Equal("file1", file1Argument.Name); 195Assert.Equal("file2", file2Argument.Name); 268Assert.Equal("my_file", fileArgument.Name); 305Assert.Equal("file", fileArgument.Name); 415Assert.Equal("file", fileArgument.Name); 462Assert.Equal("file", fileArgument.Name); 507Assert.Equal("file", fileArgument.Name);
Microsoft.AspNetCore.Http.Tests (2)
Features\FormFeatureTests.cs (2)
301Assert.Equal("myfile1", file.Name); 386Assert.Equal("myfile1", file.Name);
Microsoft.AspNetCore.Mvc.Core (4)
ModelBinding\Binders\FormFileModelBinder.cs (3)
153if (file.Name.Equals(modelName, StringComparison.OrdinalIgnoreCase)) 184if (string.Equals(name, file.Name, StringComparison.OrdinalIgnoreCase)) 199if (string.Equals(name, file.Name, StringComparison.OrdinalIgnoreCase))
ModelBinding\FormFileValueProvider.cs (1)
56fileNames.Add(file.Name);
Microsoft.AspNetCore.Mvc.Core.Test (2)
ModelBinding\Binders\FormFileModelBinderTest.cs (2)
355Assert.Equal(expected, file.Name); 502formFile.Setup(f => f.Name).Returns(modelName);
RazorPagesWebSite (2)
Pages\PropertyBinding\BindFormFile.cshtml.cs (2)
25if (string.IsNullOrEmpty(Form3.Name) || Form3.Length == 0) 30if (string.IsNullOrEmpty(Forms.Form1.Name) || Forms.Form1.Length == 0)