32 references to FormFile
Microsoft.AspNetCore.Mvc.ApiExplorer (4)
DefaultApiDescriptionProvider.cs (1)
145else if (parameter.Source == BindingSource.FormFile)
EndpointMetadataApiDescriptionProvider.cs (3)
128parameterDescription.Source == BindingSource.FormFile; 275return (BindingSource.FormFile, fromFormAttribute.Name ?? parameter.Name ?? string.Empty, false, parameterType); 305return (BindingSource.FormFile, parameter.Name ?? string.Empty, false, parameterType);
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (5)
DefaultApiDescriptionProviderTest.cs (2)
1455Assert.Same(BindingSource.FormFile, parameter.Source); 2897public BindingSource BindingSource => BindingSource.FormFile;
EndpointMetadataApiDescriptionProviderTest.cs (3)
1297Assert.Equal(BindingSource.FormFile, fromFileParam0.Source); 1303Assert.Equal(BindingSource.FormFile, fromFileParam1.Source); 1315Assert.Equal(BindingSource.FormFile, param.Source);
Microsoft.AspNetCore.Mvc.Core (6)
ApplicationModels\ConsumesConstraintForFormFileParameterConvention.cs (2)
12/// to controllers containing form file (<see cref="BindingSource.FormFile"/>) parameters. 51if (bindingSource == BindingSource.FormFile)
Infrastructure\MvcCoreMvcOptionsSetup.cs (4)
117modelMetadataDetailsProviders.Add(new BindingSourceMetadataProvider(typeof(IFormFile), BindingSource.FormFile)); 118modelMetadataDetailsProviders.Add(new BindingSourceMetadataProvider(typeof(IFormCollection), BindingSource.FormFile)); 119modelMetadataDetailsProviders.Add(new BindingSourceMetadataProvider(typeof(IFormFileCollection), BindingSource.FormFile)); 120modelMetadataDetailsProviders.Add(new BindingSourceMetadataProvider(typeof(IEnumerable<IFormFile>), BindingSource.FormFile));
Microsoft.AspNetCore.Mvc.Core.Test (10)
ApplicationModels\ConsumesConstraintForFormFileParameterConventionTest.cs (1)
38BindingSource = BindingSource.FormFile,
ApplicationModels\DefaultApplicationModelProviderTest.cs (8)
90Assert.Equal(BindingSource.FormFile, property.BindingInfo.BindingSource); 142Assert.Equal(BindingSource.FormFile, property.BindingInfo.BindingSource); 195Assert.Equal(BindingSource.FormFile, parameter.BindingInfo.BindingSource); 230Assert.Equal(BindingSource.FormFile, parameter.BindingInfo.BindingSource); 235Assert.Equal(BindingSource.FormFile, parameter.BindingInfo.BindingSource); 240Assert.Equal(BindingSource.FormFile, parameter.BindingInfo.BindingSource); 245Assert.Equal(BindingSource.FormFile, parameter.BindingInfo.BindingSource); 250Assert.Equal(BindingSource.FormFile, parameter.BindingInfo.BindingSource);
ModelBinding\Metadata\BindingSourceTest.cs (1)
71BindingSource.FormFile,
Microsoft.AspNetCore.Mvc.Test (4)
MvcOptionsSetupTest.cs (4)
182Assert.Equal(BindingSource.FormFile, formFileParameter.BindingSource); 188Assert.Equal(BindingSource.FormFile, formCollectionParameter.BindingSource); 194Assert.Equal(BindingSource.FormFile, formFileParameter.BindingSource); 200Assert.Equal(BindingSource.FormFile, formFileParameter.BindingSource);
Microsoft.AspNetCore.OpenApi (3)
Extensions\ApiDescriptionExtensions.cs (2)
84apiParameterDescription.Source == BindingSource.FormFile || 95formParameters = apiDescription.ParameterDescriptions.Where(parameter => parameter.Source == BindingSource.Form || parameter.Source == BindingSource.FormFile);
Extensions\JsonNodeSchemaExtensions.cs (1)
348|| bindingSource == BindingSource.FormFile;