title: How to access the Django forms.FileField file (*not models.FileField*)?
body: <p>I'm running Django 1.7.</p>
  
  <p>I have the following model form:</p>
  
  <pre><code>class DeckCreateForm(forms.ModelForm):
      csv_file = forms.FileField(required=False)
      class Meta:
          model = Deck
          fields = ['title', 'description']
  </code></pre>
  
  <p>Notice that the file field is not part of the model (and I would like to keep it this way). This file field is meant to provide an alternative means of constructing the model Deck.</p>
  
  <p>I would like to know how to access the uploaded file. I looked in my media directory but it is not there. I tried adding a "upload_to" to the csv_file constructor but get an error:</p>
  
  <pre><code>TypeError: __init__() got an unexpected keyword argument 'upload_to'
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>I would like to know how to get this to work with a generic class based create view which makes use of the above model form - in views.py I have:</p>
  
  <pre><code>class DeckCreateView(CreateView):
      model = Deck
      form_class = DeckCreateForm
      template_name = 'deck_create.html'
  </code></pre>
  
  <p>Specifically, how do I modify something like <a href="http://docs.djangoproject.com/en/1.7/topics/http/file-uploads" rel="nofollow">http://docs.djangoproject.com/en/1.7/topics/http/file-uploads</a> to work with the above class based view. My urls.py file:</p>
  
  <pre><code>urlpatterns = patterns(
      ...
      url(r"^deck/create/$", views.DeckCreateView.as_view(), name="deck-create"),
      ...
  )
  </code></pre>
  
  <p>Is there a method which I can override in DeckCreateView to handle the file upload?</p>