Upload a file for a file-type field
POST/smartform/:smartFormId/upload
Upload a document (PDF, DOCX, TXT, MD) for a file-type SmartForm field. The file content is extracted and the file is stored on the CDN. Use the response as the answer value (JSON stringified) when submitting answers.
Constraints:
- Max file size: 20MB
- Allowed types: .pdf, .docx, .txt, .md
Request
Responses
- 200
- 400
- 404
File uploaded and content extracted
Invalid file (unsupported type or too large)
SmartForm not found