Skip to content
This repository was archived by the owner on Apr 28, 2026. It is now read-only.
This repository was archived by the owner on Apr 28, 2026. It is now read-only.

Download Error · due to Content-length #457

@siwhitehouse

Description

@siwhitehouse

As a publisher,
I want to be informed via email when an activity file exceeds the maximum content-length
so that I can resolve the problem and have my activities appear in IATI products.

Acceptance criteria
When the Registry identifies that an activity file is too big and displays an error message on the data set page in the form:

Download Error · (_date_)
Content-length (_figure_) exceeds maximum allowed value 60000000

then it should also send an email to the contact email address to inform them. This email should only be sent when an update takes an activity file from below the maximum file size to above it.

That email should be similar to:

Dear {user_name}

The latest update of the {dataset_name] for {organisation} exceeds the maximum allowed size for IATI Activity files. The maximum size is 60MiB (62914560B), whereas your file is {file_size}.

This means your latest activity file will not appear in some IATI products, such as the IATI Datastore. It also shows an error on its IATI Registry webpage .

To resolve this you should split your IATI publication into multiple activity files.

Kind regards,

IATI Support

where {dataset_name], {organisation}, {file_size} and {URL} are placeholder variables.

We need the following to be in a position to raise a pull request, please:

  1. @cormachallinanderilinx to identify where the trigger for this needs to be
  2. @cormachallinanderilinx to replace the placeholder variables
  3. @Bjwebb to review the text of the email, with specific reference to the second paragraph
  4. I will check for guidance on splitting activity files and include a link or more information as relevant.

Also cc-ing @dan-odsc and @robredpath for info and comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions