Type Alias AddFile

AddFile: {
    filename?: string;
    role?: role;
    url: string;
    visible?: boolean;
}

Information about the added File

Type declaration

  • Optionalfilename?: string

    If the filename is not provided, and something looking like a filename is present in the URL (e.g. "something.jpg"), it will be used. Otherwise, it will default to {file_id}.{file_extension}, with file extension determined based on the media type of the file.

  • Optionalrole?: role

    Role of the file

  • url: string

    Source URL where the file is to be downloaded from. The use of .ai, .psd, and .tiff files has been deprecated, if your application uses these file types or accepts these types from users you will need to add validation.

  • Optionalvisible?: boolean

    Show file in the Printfile Library