code: def temporary_upload(name, fileobj):
      
      tempdir = mkdtemp()
      filename = secure_filename(fileobj.filename)
      filepath = join(tempdir, filename)
      fileobj.save(filepath)
      try:
          yield name, filepath, fileobj.filename
      finally:
          rmtree(tempdir)
docs: Upload a file to a temporary location.
  
      Flask will not load sufficiently large files into memory, so it
      makes sense to always load files into a temporary directory.