3 implementations of IFormFileCollection
Microsoft.AspNetCore.Http (1)
FormFileCollection.cs (1)
9public class FormFileCollection : List<IFormFile>, IFormFileCollection
Microsoft.AspNetCore.Mvc.Core (2)
ModelBinding\Binders\FormCollectionModelBinder.cs (1)
88private sealed class EmptyFormFileCollection : List<IFormFile>, IFormFileCollection
ModelBinding\Binders\FormFileModelBinder.cs (1)
170private sealed class FileCollection : ReadOnlyCollection<IFormFile>, IFormFileCollection
50 references to IFormFileCollection
Microsoft.AspNetCore.Components.Endpoints (13)
FormMapping\Converters\FileConverter.cs (2)
59if (typeof(T) == typeof(IFormFileCollection)) 66var formFileCollection = reader.FormFileCollection;
FormMapping\Factories\FileConverterFactory.cs (1)
22private static bool CanConvertCommon(Type type) => type == typeof(IFormFile) || type == typeof(IFormFileCollection) || type == typeof(IReadOnlyList<IFormFile>);
FormMapping\FormDataReader.cs (2)
37public FormDataReader(IReadOnlyDictionary<FormKey, StringValues> formCollection, CultureInfo culture, Memory<char> buffer, IFormFileCollection formFileCollection) 47public IFormFileCollection? FormFileCollection { get; internal set; }
FormMapping\HttpContextFormDataProvider.cs (4)
15private IFormFileCollection? _formFiles; 21public IFormFileCollection FormFiles => _formFiles ?? (IFormFileCollection)FormCollection.Empty; 23public void SetFormData(string incomingHandlerName, IReadOnlyDictionary<string, StringValues> form, IFormFileCollection formFiles)
FormMapping\HttpContextFormValueMapper.cs (2)
104IFormFileCollection formFiles); 115IFormFileCollection formFiles)
FormMapping\WellKnownConverters.cs (2)
46{ typeof(IFormFileCollection), new FileConverter<IFormFileCollection>() },
Microsoft.AspNetCore.Http (5)
FormCollection.cs (4)
28private static readonly IFormFileCollection EmptyFiles = new FormFileCollection(); 30private IFormFileCollection? _files; 42public FormCollection(Dictionary<string, StringValues>? fields, IFormFileCollection? files = null) 52public IFormFileCollection Files
FormFileCollection.cs (1)
7/// Default implementation of <see cref="IFormFileCollection"/>.
Microsoft.AspNetCore.Http.Extensions (12)
RequestDelegateFactory.cs (5)
71private static readonly PropertyInfo FormFilesIndexerProperty = typeof(IFormFileCollection).GetProperty("Item")!; 122private static readonly ConstructorInfo FormDataReaderConstructor = typeof(FormDataReader).GetConstructor(new[] { typeof(IReadOnlyDictionary<FormKey, StringValues>), typeof(CultureInfo), typeof(Memory<char>), typeof(IFormFileCollection) })!; 766if (parameter.ParameterType == typeof(IFormFileCollection)) 771$"Assigning a value to the {nameof(IFromFormMetadata)}.{nameof(IFromFormMetadata.Name)} property is not supported for parameters of type {nameof(IFormFileCollection)}."); 859else if (parameter.ParameterType == typeof(IFormFileCollection))
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Converters\FileConverter.cs (2)
59if (typeof(T) == typeof(IFormFileCollection)) 66var formFileCollection = reader.FormFileCollection;
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Factories\FileConverterFactory.cs (1)
22private static bool CanConvertCommon(Type type) => type == typeof(IFormFile) || type == typeof(IFormFileCollection) || type == typeof(IReadOnlyList<IFormFile>);
src\aspnetcore\src\Components\Endpoints\src\FormMapping\FormDataReader.cs (2)
37public FormDataReader(IReadOnlyDictionary<FormKey, StringValues> formCollection, CultureInfo culture, Memory<char> buffer, IFormFileCollection formFileCollection) 47public IFormFileCollection? FormFileCollection { get; internal set; }
src\aspnetcore\src\Components\Endpoints\src\FormMapping\WellKnownConverters.cs (2)
46{ typeof(IFormFileCollection), new FileConverter<IFormFileCollection>() },
Microsoft.AspNetCore.Http.Features (3)
IFormCollection.cs (1)
105IFormFileCollection Files { get; }
IFormFileCollection.cs (2)
31/// <see cref="IFormFileCollection" /> with the specified name. 36/// that implements <see cref="IFormFileCollection" />.
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\BindingSource.cs (1)
99/// A <see cref="BindingSource"/> for <see cref="IFormFile"/>, <see cref="IFormCollection"/>, and <see cref="IFormFileCollection"/>.
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
EndpointMetadataApiDescriptionProvider.cs (1)
304else if (parameterType == typeof(IFormFile) || parameterType == typeof(IFormFileCollection))
Microsoft.AspNetCore.Mvc.Core (15)
ApiBehaviorOptions.cs (1)
42/// Parameters of type <see cref="IFormFile"/> and <see cref="IFormFileCollection"/> are assumed to be bound from form.
Infrastructure\MvcCoreMvcOptionsSetup.cs (2)
119modelMetadataDetailsProviders.Add(new BindingSourceMetadataProvider(typeof(IFormFileCollection), BindingSource.FormFile)); 133modelMetadataDetailsProviders.Add(new SuppressChildValidationMetadataProvider(typeof(IFormFileCollection)));
ModelBinding\Binders\FormCollectionModelBinder.cs (2)
62public IFormFileCollection Files => new EmptyFormFileCollection(); 94IReadOnlyList<IFormFile> IFormFileCollection.GetFiles(string name) => Array.Empty<IFormFile>();
ModelBinding\Binders\FormFileModelBinder.cs (2)
40var createFileCollection = bindingContext.ModelType == typeof(IFormFileCollection); 108else if (modelType == typeof(IFormFileCollection))
ModelBinding\Binders\FormFileModelBinderProvider.cs (2)
14/// of <see cref="IFormFile"/>, and <see cref="IFormFileCollection"/>. 26modelType == typeof(IFormFileCollection) ||
ModelBinding\FormFileValueProvider.cs (6)
11/// An <see cref="IValueProvider"/> adapter for data stored in an <see cref="IFormFileCollection"/>. 20private readonly IFormFileCollection _files; 24/// Creates a value provider for <see cref="IFormFileCollection"/>. 26/// <param name="files">The <see cref="IFormFileCollection"/>.</param> 27public FormFileValueProvider(IFormFileCollection files) 41private static PrefixContainer CreatePrefixContainer(IFormFileCollection formFiles)