Core PR #54 : In attachment, when set() without the filename parameter, use the basename (filename + extension) of the file