title: Django form keeps complaining required field
body: <p>The form submits but immediately says this field is required... although it was filled out. What am I doing wrong</p>
  
  <p>In my view:</p>
  
  <pre><code>def fileupload(request):
      if request.user.is_authenticated and request.user.is_staff:
          if request.method == 'POST':
              form = UploadFileForm(request.POST, request.FILES)
              if form.is_valid():
                  handle_uploaded_file(request.FILES.getlist('file_field'))
                  return HttpResponseRedirect('/fileupload/')
          else:
              form = UploadFileForm()
          return render(request, 'fileupload.j2.html', {'form': form})
      return HttpResponseForbidden('&lt;h1&gt;403 Forbidden&lt;/h1&gt;')
  </code></pre>
  
  <p>with this form:</p>
  
  <pre><code>class UploadFileForm(forms.Form):
      kit_number = forms.CharField(label="Kit number", max_length=100, required=True, help_text='Required.')
      file_field = forms.FileField(label='Upload kit result')
  </code></pre>
  
  <p>and template:</p>
  
  <pre><code>{% extends "menu.j2.html" %}
  {% block content %}
  {% if request.user.is_authenticated and request.user.is_staff %}
  &lt;h3&gt;File upload&lt;/h3&gt;&lt;br&gt;&lt;br&gt;
      &lt;form action="/fileupload/" method="post"&gt;
      {% csrf_token %}
  &lt;div class="form-group"&gt;
      &lt;table&gt;
  {{ form.as_table() }}
      &lt;/table&gt;
  &lt;/div&gt;
      &lt;input id="button" class="btn" type="submit" value="Sent"&gt;
  
      &lt;/form&gt;
  
  {% else %}
  You are not authorized to see this page
  {% endif %}
  {% endblock %}
  </code></pre>