[#976] Fixed a bug about uploading attachements in edit page.