add file(attachment) management,fix some bug gogogogo~