title: Trying to upload CSV for testCase and getting " MultiValueDictKeyError: "'file'""
body: <p>I am trying to upload my csv for testing and I keep getting <code>&quot; MultiValueDictKeyError: &quot;'file'&quot; </code> Not sure what I am doing wrong here.</p>
  <pre><code>def test_import_existing_order(self):
  
      data = File(open('TestCSV - OrderTest.csv', 'rb'))
      upload_file = SimpleUploadedFile('data.dump', data.read(),content_type='multipart/form-data')
      request = self.seller_client.put( IMPORT_ORDERS_URL,
          {'file':upload_file,},
              content_type='application/octet-stream',
              content_disposition=&quot;attachment; filename=data.dump&quot;)
  
  def importOrdersToDict(request):
      import csv
      line_count = 0
      response_data = {&quot;orders&quot;:{},
                      &quot;orderCount&quot;:0,
                      &quot;dropOffLocations&quot;:0,
                      &quot;totalCases&quot;:0,
                      &quot;locations&quot;:{},
                      }
      csv_file = request.FILES['file']
      csv_file.seek(0)
      csv_reader = csv.DictReader(csv_file)
  </code></pre>
  <p>Edit: I tried changing my request to :</p>
  <pre><code>request = self.seller_client.put( IMPORT_ORDERS_URL,
          {'file':upload_file,},
              # content_type='application/octet-stream',
              format=&quot;multipart&quot;
              content_disposition=&quot;attachment; filename=data.dump&quot;)
  </code></pre>
  <p>Which gives me:</p>
  <pre><code>File &quot;/Users/andynguyen/Documents/AggrigatorCode/aggrigator/aggrigator/views/views_rest.py&quot;, line 823, in importOrdersToDict
      csv_file.seek(0)
  AttributeError: 'NoneType' object has no attribute 'seek'
  </code></pre>