def METHOD_NAME(url_key_name, timeout):
    """
    Authorize an upload URL.
    Arguments:
        url_key_name (str): key that uniquely identifies the upload url
        timeout (int): time in seconds before the url expires
    """
    get_cache().set(
        smart_str(get_upload_cache_key(url_key_name)),
        1, timeout
    )