Skip to Content
SahajFlowHelp Center
Workspace & Organization

Documents

What Is It?

A file library for the workspace, plus attachments on individual records (a lead, a task, an invoice) with version history.

Why Would I Use It?

Contracts, purchase bills, design files, and signed quotes need to live next to the record they belong to, with a record of who uploaded what.

Who Can Use It?

Viewing and downloading need documents.file.view; uploading needs documents.file.create and documents.attach; folder management needs the folder grants. USER can view and download; MANAGER/OWNER/ADMIN can upload.

Where Can I Find It?

Docs in the sidebar (/dashboard/documents). Attachments also appear on record pages, for example a lead or a task.

Upload a file

  1. Open Docs, or the record you want the file attached to.
  2. Choose upload and select the file (drag and drop is supported on attachment panels).
  3. Wait for the upload to finish. The file becomes version 1.
  4. If you uploaded from a record, the file is attached to that record automatically.

Limits enforced by the backend. File type and size limits, a per-folder unique active name, and the storage allowance of your plan. Exceeding the storage limit fails the upload with a clear error.

Organise

  • Create nested folders and move files between them.
  • Rename folders; a folder cannot be moved inside its own subtree.
  • Archive a file or folder to remove it from the active library; restore it later.
  • Delete performs a soft delete — the stored bytes remain, so nothing is lost silently.

Versions

  1. Open the file and choose to upload a new version.
  2. The version number increases and becomes the active content.
  3. Open versions to see the history.
  4. Restoring an old version does not rewrite history: it copies that content forward as a new version.

Attach and detach

Any document can be attached to any business record (one attachment per record per document). Detaching removes the link, not the file.

Important things to know

  • Files are stored per workspace (orgs/<organization>/documents/<uuid>/); one tenant cannot reach another's files.
  • Every download is logged for audit purposes.
  • A SHA-256 checksum is stored with each file, which is how duplicate uploads are detected.
  • Archived and soft-deleted files keep their bytes; archiving is not a data-erasure control.
  • Documents are indexed for search by name, folder, description, type, and uploader.
  • The Templates page under Docs exists in the frontend; its backend mapping was not verified.

Common problems

SymptomLikely causeWhat to do
Upload rejectedType/size limit, or plan storage fullCheck the plan limit under Control → Build Your Plan
"You do not have permission" when listing attachmentsRole lacks documents.file.viewAsk an admin to review the role bundle
File exists but the record shows no attachmentFile uploaded to the library without attachingOpen the file and attach it to the record
Old version "disappeared" after restoreRestore creates a new version; history is preservedOpen the version list

On this page