title: csrf failed while uploading the file through swagger
body: <p>I am trying to upload an image file using swagger it throws </p>
  
  <blockquote>
    <p>{
      "detail": "CSRF Failed: CSRF token missing or incorrect."
      }</p>
  </blockquote>
  
  <p>. It is important to mention that i'm using django-rest-swagger version 0.3.0 and django version 1.7. </p>
  
  <p>YAML for uploading a picture looks like: </p>
  
  <blockquote>
  <pre><code>parameters:
      - name: image
        in: formData
        required: true
        type: file
      - name: caption
        required: true
        type: string
  </code></pre>
  </blockquote>
  
  <p>I don't want to use @csrf_exempt. I tried to pass a header into this but that didn't work. header was something like:</p>
  
  <blockquote>
  <pre><code>    - name: X-CSRF-Token
        description: csrftoken to be passed in header
        in: header
        required: true
        type: string
  </code></pre>
  </blockquote>
  
  <p>any help will be appreciated. </p>