Use the `required` attribute to make the file selector a required field. This can be used for form validation purposes.
**Note:** For accessibility reasons, required fields must always display a visible label and value.

```html
<sd-file-selector label="Required" show-label required></sd-file-selector>
```
