Files, file handling and attachments

Storage model

All files in 3B Forms are stored as Salesforce Files: a content version holds the bytes, a content document groups the versions, and a content document link relates a file to a record. The form definition and theme are themselves stored this way on the form record. Uploaded form files are stored the same way and linked to the response and to the target business record.

Upload on select

Files upload as soon as the user selects them, not at submit. When a user picks a file on a file question:

  1. The file type is validated against the question's accepted types. Rejected files return an error to the user immediately.
  2. The file is read and, unless the question is set not to store uploads, saved as a new content version against the response record.
  3. Each upload creates its own content document, so multiple files with the same name (for example several camera captures all named the same) do not collide.
  4. If the question has document parsing enabled, the file is also sent for extraction. See AI document parsing.

Because files upload on select, a returning draft already has its files stored and does not re upload them.

Size based routing

Uploads route differently by user type and size, with a 3 MB threshold:

Case Route
Any user, up to 3 MB Stored through Salesforce directly
Guest user, over 3 MB Managed large file service, authenticated with the session key
Authenticated user, over 3 MB Salesforce REST directly

The managed large file service endpoint is the Files Endpoint general setting. Retrieval mirrors the same routing, with client side caching so a file is not fetched twice.

Attaching files to records

At submit, uploaded files are related to their target record by creating a content document link. A file question inside a child section links its files to that child record; a file on the main form links to the main record. Signature captures, which hold raw image data rather than a stored version, are uploaded at submit and linked to both the record and the response.

Do not store uploads

A file question with document parsing can be set to not store the upload. In that case the file is kept only in the browser for the duration of the session and for sending to the parser. It is never saved to Salesforce and never linked to any record. Use this when you want to extract data from a document but must not retain the document itself.

The response JSON snapshot

On submit, and on draft save, a JSON snapshot of the answers is stored as a file on the response record. Before storage, sensitive and password answers are masked and file byte content is stripped out so the snapshot stays small; signatures are kept. This snapshot is what the preview and draft resume features load. Storing the snapshot can be turned off per form with the disable response JSON option.

Deprecated upload paths

Earlier versions used a chunked upload mechanism and could save uploads as classic attachments. Those paths are retired. Files are always Salesforce Files now, and the related legacy settings and web service are inert.