← Files Dathent StudioARCHIVED FILE

docs/ORIGINAL_FILES.md

3.29 KB · Nov 30, 2026 · 00:21 UTC

↓ Download file

# Save the selected original, unchanged

A request to save, back up or upload an existing publication authorizes storing
its selected original bytes. It does not authorize changing the file to make it
fit. Apply this rule to PDFs, illustrations, photographs and other materials,
including files intended for printing.

- The current service accepts **128 MiB per file (134,217,728 bytes)** and
  **512 MiB per project (536,870,912 bytes)**. A 29 MiB or 104 MiB PDF fits the
  per-file limit. Use the actual byte size when available. Do not apply stale
  20/100 MiB instructions from an older installed copy; refresh tool metadata
  when it disagrees with the current service contract.
- If the selected original fits and the user asked to save it, send that exact
  file immediately through project_save_material using the schema actually
  exposed by the host: a real local file path or real host file reference.
  Do not ask again for permission already given.
- Do not compress, optimize, re-export, rebuild, rasterize, downsample, split,
  archive, strip metadata/fonts/color profiles, change DPI/page dimensions/bleed,
  remove pages or substitute a preview merely to get an upload through. Even a
  visually identical or losslessly rewritten PDF is a different byte sequence.
  The service's transport chunks are reassembled unchanged; they do not require
  the assistant to split or rebuild the user's PDF.
- If the actual original exceeds the file or remaining project limit, state the
  measured size, relevant limit and that the original was not saved. Preserve
  successful saves and offer the supported download/storage-review options.
  A smaller derivative requires a separate explicit request or approval; save
  and label it as a distinct variant, never as the saved original. Keeping an
  original somewhere else does not authorize substituting a smaller upload.
- If a file within the service limit cannot pass through this host, report the
  actual diagnostic and offer the same project's authenticated library picker
  to upload the unchanged original. Do not silently lower quality, fabricate a
  file reference or describe a host failure as a smaller backend storage limit.
- A local ChatGPT execution path is temporary working storage, not a verified
  durable backup in Dathent Studio or on the user's own device. Do not promise
  "the original is safely saved locally" as a substitute for a storage receipt.
- Verify the returned asset ID, size and SHA-256 and confirm the file in
  project_files. Compare size/hash with the selected original when available.
  A mismatch means preservation is unverified: report it instead of claiming an
  unchanged save. Distinguish original, explicitly requested derivative, failed
  upload and local-only file in the final status. Never expose signed URLs in logs.

## Routing examples

- "Save these three 29 MiB print PDFs": send the three existing originals,
  subject to remaining project space. Do not "prepare them to fit".
- "Save this 104 MiB book": transfer the exact original; no compression step.
- "Save this 140 MiB PDF": explain that it exceeds 128 MiB and is not saved;
  do not manufacture a smaller replacement under the save request.
- "Also make a small reading copy": that explicitly requests a new derivative.
  Keep it distinct from the original and report which files actually saved.

SHA-256: c493833906f1c72427b14d541280c0960f3ce5d8dfd70f90c9975440416f6b62