Blog Sections Open

Sending FormLister Uploads as Links Instead of Heavy Email Attachments

A practical FormLister pattern for handling user uploads more safely by storing the file and emailing a link to it.

Large or mixed-format attachments can make a form workflow heavier than it needs to be. The donor topic showed a practical alternative for FormLister: accept uploaded files, save them to a temporary folder, and send the recipient a link instead of embedding the file directly into the email.

Why this pattern is useful

  • Email delivery becomes more reliable when the message is lighter.
  • You can control file naming and storage before sending anything onward.
  • Recipients still get access to the uploaded material without turning every form into an attachment-heavy mail job.

Typical flow

&attachments=`ufile`
&prepareAfterProcess=`prepareUpload`

Then in the post-processing hook, move the uploaded file into a known temporary directory, normalize the filename, and expose its path to the report template as a link.

This is a strong pattern for project forms, support requests, and tender-like workflows where uploaded files matter, but mailbox stability matters too.

Newer post

Making FormLister Work with AJAX in Evolution CMS 1.4.x and 3.x

How to run FormLister in API-style mode and return JSON validation errors so the form can be submitted over AJAX without a full page reload.

Older post

Replacing Raw mysql_query Updates with Evolution CMS DBAPI Calls

How to replace fragile raw mysql_query update code with cleaner DBAPI update calls in Evolution CMS.