[Fix] use File instead of String for attachment param