title: asp.net core web API file upload and "form-data" multiple parameter passing to method
body: <p>I have created an endpoint that takes files as parameters:</p>
  
  <pre><code>    [HttpPost("[action]")]
      [Consumes("multipart/form-data")]
      public ActionResult UploadImage(IFormFile  Files, string param)
      {
  
          long size = Files.Length;            
          var tempPath = Path.GetTempFileName();
          string file_Extension = Path.GetExtension(Files.FileName);                   
          var isValidFile = FileValidation.FileUploadValidation(Files);
          if (isValidFile.data)
          {
              string filename = Guid.NewGuid() + "" + file_Extension;
              return null;
  
          }
          else
          {
              return null;
          }
      }
  </code></pre>
  
  <p>I cant retrieve the file with out a issue.
  How to add more text parameters to the same method ?</p>
  
  <p><a href="https://i.stack.imgur.com/L5WSh.png" rel="noreferrer"><img src="https://i.stack.imgur.com/L5WSh.png" alt="Debug View param parameter is null"></a></p>
  
  <p><a href="https://i.stack.imgur.com/mxews.png" rel="noreferrer"><img src="https://i.stack.imgur.com/mxews.png" alt="Postmen call"></a></p>