[wip] fix attachment edit(work in browser)