We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bb6d13 commit 4ad5ddbCopy full SHA for 4ad5ddb
packages/web-api/src/file-upload.ts
@@ -28,7 +28,7 @@ export async function getFileUpload(
28
initial_comment: options.initial_comment,
29
snippet_type: options.snippet_type,
30
thread_ts: options.thread_ts,
31
- title: options.title,
+ title: options.title ?? (options.filename ?? fileName),
32
// calculated
33
data: fileData,
34
length: fileDataBytesLength,
0 commit comments