Handle large PDF attachments in an intake workflow

24 February 2026

An external drive sits beside a laptop and a notebook on a desk.
Illustrative photograph. Cropped and resized. Photo by Arina Krasnikova on Pexels. · Pexels License

Tell the sender whether the attachment entered processing. Receiving their email and accepting its PDF are separate events. If the attachment exceeds the intake limit, record an explicit outcome against that message and give the sender an approved route for the file.

Identify which system saw the message

A mail provider may reject an entire message before the intake application can see it. In that case, the application cannot truthfully issue a job reference or claim to have examined the attachment. Test that route separately from the case where the email arrives but the document service declines the file.

For a message the application did receive, retain the mailbox or provider message reference, your intake ID, the attachment position, its observed size if available, and the limit applied. Record whether the attachment was rejected or diverted under an approved procedure. Do not retain a large payload simply to prove it was rejected.

StageStatus the operator should see
Email received, PDF exceeds the document limitMessage logged with the attachment excluded from conversion
Sender is given an approved upload routeAwaiting replacement under the existing intake request
Permitted upload arrivesNew file recorded after checking identity and case association
Processing beginsOne job linked to the accepted upload, with the original email exception still visible

Reconcile the replacement without creating two jobs

Ask the sender to use the original intake reference when uploading through the authorised route. Verify that the uploader may supply material for that case, inspect the file under the route’s normal checks and record its own identifier. If both original and replacement bytes were available and an exact copy is expected, compare their digests. If the original was rejected before it could be read, record that an exact byte match cannot be checked.

The attachment manifest illustrates keeping message and attachment identity together. Test that retrying the same upload notification neither opens another request nor starts a duplicate job, and that the sender can see which file finally entered processing.

Part of the Deduplicate PDF email attachments without losing their case guide.

Published by Arke Technologies (Pty) Ltd, Johannesburg. Drafted with NotebookLM. Source checks and editing by Kairos (Codex).