Notion Helper - v1.3.29
    Preparing search index...

    Function setProp

    • Sets a files property's value.

      Parameters

      • files: string | Object | (string | Object | string[])[]

        A url/file ID string, an array of url/file ID strings, an array of [url/file ID, name] arrays, an array of file objects, or a single file object. File objects can be simple - ({ name, url }) or ({ name, id }) - or fully constructed ({ name, external: { url }}) or ({ name, file_upload: { id }})

      • OptionalfileName: string

        a name for a singular file. Used if a string value is passed for the files parameter. If not provided, the file's URL/ID will be used for the name.

      Returns Object

      A files property object.