Generate a download url if one isn't provided