# clanbite_with_upload_subdir()

Run a callback with `upload_dir` forced to a subdirectory of the uploads base (path + url + subdir).

```php
clanbite_with_upload_subdir( string $relative_dir, callable $callback )
```

## Parameters

- `$relative_dir` (string) Path under uploads base, e.g. `clanbite/teams/1/matches/staging` (no leading slash).
- `$callback` (callable) Invoked while the filter is active.

## Return

`mixed` Return value of `$callback`.
