Allow uploading of signatures through views (#15722)

This commit is contained in:
Conor Webb 2025-03-12 13:05:32 +00:00 committed by GitHub
parent 8f19b4250b
commit f8a4135c3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 4 deletions

View File

@ -31,10 +31,12 @@
let attachRequest = new FormData() let attachRequest = new FormData()
attachRequest.append("file", signatureFile) attachRequest.append("file", signatureFile)
const resp = await API.uploadAttachment( let sourceId = formContext?.dataSource?.tableId
formContext?.dataSource?.tableId, if (formContext?.dataSource?.type === "viewV2") {
attachRequest sourceId = formContext.dataSource.id
) }
const resp = await API.uploadAttachment(sourceId, attachRequest)
const [signatureAttachment] = resp const [signatureAttachment] = resp
updateValue = signatureAttachment updateValue = signatureAttachment
} else { } else {