title: How to locally save a pdf file from file object?
body: <p>I am trying to upload a pdf file and just save it locally received from a FILE request.</p>
  
  <p>If it helps the file type returns the following:  class 'django.core.files.uploadedfile.InMemoryUploadedFile'</p>
  
  <pre><code>def file_upload(request):
      lesson_file = request.FILES['file']
      # Save file to same directory
      lesson_file.save('file_name.pdf') #This is just an example of what I want to achieve
  </code></pre>