title: Need an Example of Django big File upload with upload file handler method
body: <p>In one of my django project I am trying to upload files. Files can be video files and can be big as 20 MB. I am trying to upload it with celery and upload_file_handler method given in django docs. </p>
  
  <p>What i did is it.  </p>
  
  <pre><code>class MyVideo(models.Model):
      user = models.ForeignKey(User)
      video = models.FileField(null=True, blank=True, upload_to="video")
  
      def __unicode__(self):
          return self.user.username
  </code></pre>
  
  <p>In forms.py  </p>
  
  <pre><code>class VideoForm(forms.ModelForm):
      video = forms.FileField(required=False)
  
      class Meta:
          model = MyVideo
          exclude = ['user']
  
      def clean_video(self):
          video = self.cleaned_data['video']
          if video and video._size &gt; (10 * 1024 * 1024):
              raise forms.ValidationError("only 10 MB video is allowed")
          return self.cleaned_data['video']
  </code></pre>
  
  <p>In View.py   </p>
  
  <pre><code>class CreateDigitalAssetsView(LoginRequiredMixin, CreateView):
  
  template_name = "video_create.html"
  form_class = VideoForm
  
  def get_success_url(self):
      return reverse("video_url")
  
  def form_valid(self, form):
      user = self.request.user
      video = form.cleaned_data['video']
  
      if video:
          handle_uploaded_file(video)
          # stick here what to do next.
  
  def handle_uploaded_file(f):
      filename, extension = os.path.splitext(video.name)
      with open('media/video/'+filename, 'wb+') as destination:
          for chunk in f.chunks():
              destination.write(chunk)
  </code></pre>
  
  <p>I am stuck here what to do next after calling handled_uploaded_file. Please guide me how can i use this written file using hanldle_uploaded_file to save in django model.</p>