title: Upload a file in Swagger and receive at Flask backend
body: <p>I'm trying to upload a file using Swagger and Flask. I've the following configuration for swagger.</p>
  
  <pre><code>"/user/register/": {
      "post": {
          "tags": ["user"],
          "summary": "Register a new user",
          "description": "",
          "operationId": "registerUser",
          "consumes": ["application/json"],
          "produces": ["application/json"],
          "parameters": [{
              "in": "body",
              "name": "body",
              "description": "User object that needs to be added.",
              "required": true,
              "schema": {
                  "$ref": "#/definitions/User"
              }
          },
          {
              "name": "file",
              "in": "path",
              "description": "file to upload",
              "required": true,
              "type": "file"
          }]
      }
  },
  </code></pre>
  
  <p>I do get the option for uploading a file, but when I try to receive it at the backend,(using <code>print request.files</code>) it returns me nothing.</p>
  
  <p>How can I receive the file (selected at swagger level) at the backend.??</p>