Allow IAttachmentManipulator to easily check on the uploaded attachment's file data
|Reported by:||Owned by:|
Currently, both the filename and the file data is not available to the manipulator, unless it would reimplement part of the logic found in AttachmentModule#_do_save.
_do_save already does some verification on the uploaded file, which I presume is present in some temporary location on the local filesystem.
My proposal would be to also pass in the upload file object associated with that file to the manipulator so that it is able to verify its contents, for example scanning it with an antivirus scanner and so on.
See also ticket #9280.