Upload a submission attachment. Attachment can be passed as a Blob,
Uint8Array or string (base64). Will return data required form accessing
the attachment.
Example
constblob = newBlob(['a string of data'], { type:'text/plain', }) constfile = { formId:1, data:blob, fileName:'file.jpg', contentType:'image/jpeg', isPrivate:true, // Whether the attachment will be able to be downloaded by other users } constabortController = newAbortController() const { s3: { key, // string bucket, // string region, // string }, url, // string contentType, // string fileName, // string id, //string isPrivate, // boolean uploadedAt, // string } = awaitsubmissionService.uploadAttachment( file, abortController.signal, )
Upload a submission attachment. Attachment can be passed as a
Blob,Uint8Arrayorstring(base64). Will return data required form accessing the attachment.Example