title: How to grab a file from django select DocumentForm?
body: <p>I have a select form in django templates:</p>
  
  <pre><code>        &lt;form action="{% url "graph" document.docfile.name %}" method="post" enctype="multipart/form-data"&gt;
          {% csrf_token %}
          &lt;select name="{{ document.docfile.name }}" id="{{ document.docfile.name }}" onchange="this.form.submit()"&gt;
          &lt;option value=""&gt;&lt;/option&gt;
          {% for document in documents %}
          &lt;option value="{{ document.docfile.name }}"&gt;{{ document.docfile.name }}&lt;/option&gt;
          {% endfor %}
          &lt;/select&gt;
          &lt;/form&gt;
  </code></pre>
  
  <p>I want to pick the selected file in views.py. I tried request.POST.get() with no success:</p>
  
  <pre><code>if request.method == 'POST':
     doc = request.POST.get("name", "")
  </code></pre>
  
  <p>How can I grab the name of the selected file in python views.py?</p>