Allow uploading of signatures through views (#15722)
This commit is contained in:
parent
8f19b4250b
commit
f8a4135c3e
|
@ -31,10 +31,12 @@
|
|||
let attachRequest = new FormData()
|
||||
attachRequest.append("file", signatureFile)
|
||||
|
||||
const resp = await API.uploadAttachment(
|
||||
formContext?.dataSource?.tableId,
|
||||
attachRequest
|
||||
)
|
||||
let sourceId = formContext?.dataSource?.tableId
|
||||
if (formContext?.dataSource?.type === "viewV2") {
|
||||
sourceId = formContext.dataSource.id
|
||||
}
|
||||
|
||||
const resp = await API.uploadAttachment(sourceId, attachRequest)
|
||||
const [signatureAttachment] = resp
|
||||
updateValue = signatureAttachment
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue