# 63044: Link to a sample media file returns 404 Not Found

Log Type: APPLICATION

Log Level: ERROR

## Description

This error occurs when the sample media URL returns `404 Not Found`, so Twilio can't retrieve the file. For media and content templates, the sample URL must resolve to a publicly hosted file.

### Possible causes

* The media file does not exist at the URL you provided.
* The URL path is incorrect, including the file name, directory, or file suffix.
* If you use a variable in the media URL, the sample path does not resolve to a publicly hosted file.

### Possible solutions

* Update the URL so it points to the correct file path and the file is available.
* Confirm the link opens in your browser and resolves to a publicly accessible file.
* If the URL uses variables, provide a valid sample path so the combined URL resolves to a publicly hosted file.

#### Additional resources

* [twilio/card](/docs/content/twiliocard)
* [twilio/media](/docs/content/twilio-media)
* [Accepted content types for media](/docs/messaging/guides/accepted-mime-types)
