title: Python - Django - 'InMemoryUploadedFile' object has no attribute 'split'
body: <p>I'm making the user upload a txt file and then submitting it so i can do some work on that file in one of my views.</p>
  
  <p>I had some problems with that but with help of the community is now at least recognizing the POST method in my form.</p>
  
  <p>What is happening is that my view is failing in reading the file. This is me debugging my view:</p>
  
  <p><a href="https://i.stack.imgur.com/fZU4Z.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fZU4Z.png" alt="enter image description here"></a></p>
  
  <p>As you can see the do_some_work method checks for a POST method and if it is then file that comes with the request, that is a TXT file and then split the lines in that file.</p>
  
  <p>Well this is not working. When i reach that line i get the:</p>
  
  <pre><code>'InMemoryUploadedFile' object has no attribute 'split'
  </code></pre>
  
  <p>So i don't know what could be wrong. </p>
  
  <p>This is my form:</p>
  
  <pre><code>&lt;form  action="{% url "do_some_work" %}" method="POST" enctype="multipart/form-data"&gt;
      {% csrf_token %}
      &lt;div class="form-group"&gt;
          &lt;label for="exampleInputFile"&gt;File input&lt;/label&gt;
          &lt;input type="file" id="exampleInputFile" name="some_file"&gt;
      &lt;/div&gt;
      &lt;button type="submit" class="btn btn-default"&gt;Submit&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I will appreciate any help with this. If you need more information just let me know
  Thanks.</p>