Skip to content

[Stream] Add filename option to Media Transformations #24246

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: production
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/content/docs/stream/transform-videos/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,19 @@ If `mode` is `frame`, specifies the image output format.

- Acceptable options: `jpg`, `png`

If `mode` is `audio`, specifies the audio output format.
If `mode` is `audio`, specifies the audio output format.

- Acceptable options: `m4a` (default)

### `filename`

Specifies the filename to use in the returned Content-Disposition header. If not specified, the filename will be derived from the source URL.

- Acceptable values:
- Maximum of 120 characters in length.
- Can only contain lowercase letters (a-z), numbers (0-9), hyphens (-), underscores (\_), and an optional extension. A valid name satisfies this regular expression: `^[a-zA-Z0-9-_]+.?[a-zA-Z0-9-_]+$`.
- Examples: `default.mp4`, `shortened-clip_5s`

## Source video requirements

Input video must be less than 100MB.
Expand Down