Skip to content

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 ​

ts
// https://ucarecdn.com/:uuid/-/resize/300x/photo.jpg?v=2#top
// └── cdnBase ───────┘ └uuid┘ └modifiers──┘ └filename┘└sr┘└hash┘

Properties ​

cdnBase ​

ts
cdnBase: string;

Defined in: tiny/url.ts:39

Scheme + host. A trailing slash is tolerated and trimmed on build.


filename? ​

ts
filename?: string;

Defined in: tiny/url.ts:45

Trailing filename. Optional — omit it for a url that ends with a slash.


hash? ​

ts
hash?: string;

Defined in: tiny/url.ts:49

Fragment ('#…'). Optional, empty by default.


modifiers? ​

ts
modifiers?: ModifiersChain;

Defined in: tiny/url.ts:43

The directive chain between uuid and filename. Optional, empty by default.


ts
search?: string;

Defined in: tiny/url.ts:47

Query string ('?…'). Optional, empty by default.


uuid ​

ts
uuid: string;

Defined in: tiny/url.ts:41

The uuid — the first path segment.