title: how to get uploaded file name in django
body: <p><strong>Problem Background</strong>
  I am new to django. I am trying to upload the file from client and save it.
  For this pupose i have created below model.</p>
  
  <pre><code>from django.db import models
  class UploadFile(models.Model):
      uploadfile = models.FileField(upload_to='toProcess/')
  </code></pre>
  
  <p>I am using this model as below to save the file.</p>
  
  <pre><code>newfile = UploadFile(uploadfile = request.FILES['file'])
  newfile.save()
  </code></pre>
  
  <p>It is saving file. But now I want to process saved file. In django, if the file with the same name alreday exists then it is adding some unique postfix to the original file name. I am happy with this approch and do not want to write a new method to create a unique filename.</p>
  
  <p>Probelm- 
  How to get the new unique name calculated by django for a file?</p>
  
  <p>Mean If I will upload a same file two times say "abc.pdf" then it will save the first uploaded file as "abc.pdf" and second uploaded file as "abc_somesuffix.pdf". How to know what is the name of saved file?</p>