asset-url
Map a Foundry VTT file path under Data/ to its public HTTPS URL, providing a direct link for the server or players to load.
Instructions
Plane B (file channel). Return the public HTTPS URL for a file under the Foundry Data/ root. Pure mapping (no network): everything under Data/ is served at the server root (DESIGN §6), e.g. Data/worlds/w/maps/x.jpg → /worlds/w/maps/x.jpg. Useful for turning an uploaded/known asset path into a link Foundry or a player can load.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| remotePath | Yes | Path relative to the Foundry `Data/` root (a leading "Data/" or "/" is tolerated and stripped), e.g. "worlds/your-world/assets/maps/cavern.webp". |