update to deal with super-long attach filename