fix upload attachment issue on mybb version 1.6.10