public function write($path, $contents, Config $config)
    {

        // 1. Save to temporary local file -- it will be destroyed automatically
        $tempfile = tmpfile();
        fwrite($tempfile, $contents);

        // 2. Use Cloudinary to send
        $uploaded_metadata = $this->writeStream($path, $tempfile, $config);

        return $uploaded_metadata;
    }