The uploads from server

See

createUpload Example:

{
id: 2973,
url: "https://discourse.example/uploads/default/original/2X/4/436ccd13b6e46397a792d51fbef445380b1cc1d3.jpeg",
original_filename: "photo_2023-05-28_17-35-00.jpg",
filesize: 122190,
width: 640,
height: 640,
thumbnail_width: 500,
thumbnail_height: 500,
extension: jpeg,
short_url: "upload://9Ct5W75p3SHRlq6I3TfD1OaFEdR.jpeg",
short_path: "/uploads/short-url/9Ct5W75p3SHRlq6I3TfD1OaFEdR.jpeg",
retain_hours: null,
human_filesize: "119 KB",
dominant_color: "67545B"
}

Hierarchy

  • Uploads

Indexable

[propname: string]: unknown

Properties

dominant_color?: null | string
extension: string

file extension

filesize: number
height?: number
human_filesize: string
id: number

Uploads unique id

original_filename: string
retain_hours: null | number
short_path: string
short_url: string
thumbnail_height?: number
thumbnail_width?: number
url: string
width?: number

Generated using TypeDoc