completed generate_dropbox_download_url method