also a comment explaining "(status !== 'success') means that the user needs to download the attachment.
(don't we have a specific status for that ?)