I had assumed the feature wouldn't work with secure folders, but after discution 3669 I think it's a bug.
The upload works. "Dynamic Data.cs" displays the correct download link, even though the file's folder is secure, but when tried to attach the file and send the email, got an error:
(this happens in staging or live)
