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