Use Attachment.file_name instead of filename in the file assign view

This prevents an exception because filename is not implemented.