title: Why I can't upload file and send some other parameters with content-type of multipart/form-data when I'm using nginx reverse proxy?
body: <p>I need to upload a file with some other string type parameters, the content-type is multipart/form-data.And now the problem is I can make it with postman when I run my application locally,but when I put my program to my server which has the nginx reverse proxy I can't upload my file.The response is 502 bad gateway or 400 bad request.I don't know why , does the problem from the nginx?</p>
  
  <p>I try to add the nginx upload module to the nginx,but I don't know how,and I want to find some other solutions.I guess not every application need the upload module of nginx if it has the ability to reveive the file by itself,am I right? But I think I still need to do some configuration with the nginx proxy. By the way ,both my application and nginx are run in docker.</p>
  
  <p>This is the method to receive the file and other parameters:</p>
  
  <pre><code>[HttpPost, Route("addbook")]
  public ActionResult AddBook() {
              IFormFile file = Request.Form.Files["bookcover"];
              //process the file...
  
              Book book = new Book {
                  BookID = Guid.NewGuid().ToString("N"),
                  Name = Request.Form["bookName"],
                  Author = Request.Form["bookAuthor"],
                  OwnerID = Request.Form["ownerid"],
                  Introduce = Request.Form["bookIntro"],
                  UploadTime = DateTime.Now,
                  BookCover = filename
              };
              db.Insertable(book).ExecuteCommand();
              return Ok("success");
          }
  </code></pre>
  
  <p>Can I successfully upload the file without using nginx upload module and how?
  Thanks for help.
  Frank.</p>