title: How can I get the file name from request.FILES?
body: <p>How can I get the file name from request.FILES in Django? </p>
  
  <pre><code>def upload(request):
      if request.method == 'POST':
          form = UploadForm(request.POST, request.FILES)
          if form.is_valid():
              upload = Upload()
              upload.timestamp = datetime.datetime.now()
              save_instance(form, upload)
  </code></pre>
  
  <p>I tried using this but it did not work:</p>
  
  <pre><code>  if 'filename'  in request.FILES:
           filename = request.FILES['filename']
  </code></pre>