I have an ASP.NET Core 2.2 WebApi and want to upload large files with some additional metadata. The request is a multipart/form-data. Because the files to upload can get quite large, I do not want to read it into memory for processing but rather stream it directly to it's desired destination. I followed the documentation to disable form value model binding and I also adjusted the maximum request size for the endpoint.
I have tested the endpoint with postman and it works as expected:

However, Swagger obviously does not recognize that there should be parameters for the request. How can I add these parameters to the swagger documentation without defining the parameters in the method's signature?
My endpoint looks like the following example:
[HttpPost]
[DisableFormValueModelBinding]
[DisableRequestSizeLimit]
public async Task<IActionResult> Upload() // "department" and "file" needed in the multipart/form-data
{
// var path = await uploader.UploadAsync(Request);
// return Ok(path);
}
Usually, I would bind the parameters like the following example:
public async Task<IActionResult> Upload([FromForm] string department, [FromForm] IFormFile file)
This works as expected in Swagger but as mentioned above, I do not want to bind the parameters.