Skip to content

Commit 15e4a8c

Browse files
[Stream] Add filename option to Media Transformations (#24246)
* Add filename option to Media Transformations Adds `filename` option to Media Transformations docs and describes constraints. * Update src/content/docs/stream/transform-videos/index.mdx Co-authored-by: ToriLindsay <[email protected]> --------- Co-authored-by: ToriLindsay <[email protected]>
1 parent 67c1efb commit 15e4a8c

File tree

1 file changed

+10
-1
lines changed
  • src/content/docs/stream/transform-videos

1 file changed

+10
-1
lines changed

src/content/docs/stream/transform-videos/index.mdx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,19 @@ If `mode` is `frame`, specifies the image output format.
111111

112112
- Acceptable options: `jpg`, `png`
113113

114-
If `mode` is `audio`, specifies the audio output format.
114+
If `mode` is `audio`, specifies the audio output format.
115115

116116
- Acceptable options: `m4a` (default)
117117

118+
### `filename`
119+
120+
Specifies the filename to use in the returned Content-Disposition header. If not specified, the filename will be derived from the source URL.
121+
122+
- Acceptable values:
123+
- Maximum of 120 characters in length.
124+
- 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-_]+$`.
125+
- Examples: `default.mp4`, `shortened-clip_5s`
126+
118127
## Source video requirements
119128

120129
Input video must be less than 100MB.

0 commit comments

Comments
 (0)