title: How to upload csv file to API using python
body: <p>Tried this</p>
  <pre><code>response = requests.put(url, headers=headers, files = files)
  </code></pre>
  <p>where file is</p>
  <pre><code>files = [
    ('file', open('D:/cf_upload-sheet/new_data.csv','rb'))
  ]
  </code></pre>
  <p>Getting this error on server end: ,&quot;method&quot;:&quot;PUT&quot;,&quot;exception&quot;:&quot;RuntimeError - Only .csv, .xls and .xlsx files are allowed.&quot;</p>
  <p>Did anyone face the same issue? and how to resolve it?</p>