Interface: TinyFileUrl
Defined in: tiny/url.ts:37
A single-file CDN url cut into the strings tinyBuild joins back together. Only cdnBase and uuid are required; the rest default to empty, so a bare url is { cdnBase, uuid }. The field names match ParsedFileUrl, with modifiers standing in for its operations.
See
https://uploadcare.com/docs/delivery/cdn/
Example
// https://ucarecdn.com/:uuid/-/resize/300x/photo.jpg?v=2#top
// └── cdnBase ───────┘ └uuid┘ └modifiers──┘ └filename┘└sr┘└hash┘Properties
cdnBase
cdnBase: string;Defined in: tiny/url.ts:39
Scheme + host. A trailing slash is tolerated and trimmed on build.
filename?
filename?: string;Defined in: tiny/url.ts:45
Trailing filename. Optional — omit it for a url that ends with a slash.
hash?
hash?: string;Defined in: tiny/url.ts:49
Fragment ('#…'). Optional, empty by default.
modifiers?
modifiers?: ModifiersChain;Defined in: tiny/url.ts:43
The directive chain between uuid and filename. Optional, empty by default.
search?
search?: string;Defined in: tiny/url.ts:47
Query string ('?…'). Optional, empty by default.
uuid
uuid: string;Defined in: tiny/url.ts:41
The uuid — the first path segment.