make cache_dir method for Uploader class