code: func TempFile(stream io.ReadCloser) (string, error) {
  	f, err := ioutil.TempFile(os.TempDir(), "")
  	if err != nil {
  		return "", err
  	}
  	defer f.Close()
  	defer stream.Close()
  
  	_, err = io.Copy(f, stream)
  	return f.Name(), err
  }
docs: // TempFile store a temp file