title: File upload with Swagger 5.0.0-rcX and .Net-Core 3
body: <p>I am using .NetCore 3 and Swagger 5.0.0-rc4. I am trying to upload file(image) using Swagger but it does not work because the apply method in the IOperationFilter or even Swashbuckle.AspNetCore.Swagger are missing some attributes. For instance NonBodyParameter and Consumes do not exit in Swagger 5.0</p>
  
  <p>Do anyone use face the same problem or tried to solve it?</p>
  
  <pre><code>public class FileOperationFilter : IOperationFilter
      {
  
          public void Apply(OpenApiOperation operation, OperationFilterContext context)
          {
              if (operation.OperationId.ToLower() == "apivaluesuploadpost")
              {
                  operation.Parameters.Clear();
                  operation.Parameters.Add(new **NonBodyParameter**
                  {
                      Name = "uploadedFile",
                      In = "formData",
                      Description = "Upload File",
                      Required = true,
                      Type = "file"
                  });
                  operation.**Consumes**.Add("multipart/form-data");
              }
          }
      }
  </code></pre>