Name blob

This commit is contained in:
tsickert 2024-04-05 09:30:36 +00:00
parent f72e1de0aa
commit 1ffc2fcbc6
3 changed files with 1 additions and 1 deletions

BIN
dist/index.js generated vendored

Binary file not shown.

BIN
dist/index.js.map generated vendored

Binary file not shown.

View file

@ -34,7 +34,7 @@ export async function executeWebhook(
if (filename !== '' || threadName !== '' || flags !== '') {
const formData = new FormData()
if (filename !== '') {
formData.append('upload-file', await blob(createReadStream(filename)))
formData.append('upload-file', await blob(createReadStream(filename)), filename)
formData.append('payload_json', JSON.stringify(payload))
}
if (threadName !== '') {