title: How can I pass TemporaryUploadedFile to celery task?
body: <p>I have a code:</p>
  
  <pre><code>def post(self, request, *args, **kwargs):
      file = request.FILES["import_file"]
      # create a tast with celery and save ID of the task
      task_id = importing.delay(file).id
      return Response({"task_id": task_id}, content_type="application/json")
  </code></pre>
  
  <p>When type(file) is TemporaryUploadedFile I have errors, because of the file can not be written into redis.</p>
  
  <p>I can take name of this temporary file and save this name into Redis. Then celery worker can get this name from redis and read file. But I am not sure: can the file be deleted before celery worker gets its name from redis?</p>