support passing in filename option for file attachments