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