3 implementations of
Microsoft.AspNetCore.Http (1)
FormFileCollection.cs (1)
12public IFormFile? this[string name] => GetFile(name);
Microsoft.AspNetCore.Mvc.Core (2)
ModelBinding\Binders\FormCollectionModelBinder.cs (1)
90public IFormFile? this[string name] => null;
ModelBinding\Binders\FormFileModelBinder.cs (1)
177public IFormFile? this[string name] => GetFile(name);
16 references to
Microsoft.AspNetCore.Http.Extensions.Tests (12)
RequestDelegateGenerator\RequestDelegateCreationTests.Forms.cs (12)
78Assert.NotNull(formFiles["file"]); 111Assert.Equal(httpContext.Request.Form.Files["file"], httpContext.Items["formFiles"]); 149Assert.Equal(httpContext.Request.Form.Files["file"], httpContext.Items["formFiles"]); 187Assert.Equal(httpContext.Request.Form.Files["file1"], httpContext.Items["file1"]); 192Assert.Equal(httpContext.Request.Form.Files["file2"], httpContext.Items["file2"]); 228Assert.Equal(httpContext.Request.Form.Files["file1"], httpContext.Items["file1"]); 231Assert.Equal(httpContext.Request.Form.Files["file2"], httpContext.Items["file2"]); 265Assert.Equal(httpContext.Request.Form.Files["my_file"], httpContext.Items["formFiles"]); 302Assert.Equal(httpContext.Request.Form.Files["file"], httpContext.Items["formFiles"]); 412Assert.Equal(httpContext.Request.Form.Files["file"], httpContext.Items["file"]); 459Assert.Equal(httpContext.Request.Form.Files["file"], httpContext.Items["file"]); 504Assert.Equal(httpContext.Request.Form.Files["file"], httpContext.Items["file"]);
Microsoft.AspNetCore.Http.Tests (4)
Features\FormFeatureTests.cs (4)
300var file = formCollection.Files["myfile1"]; 385var file = formCollection.Files["myfile1"]; 434var file = formCollection.Files["myfile1"]; 583var file = formCollection.Files["myfile1"];