Added updateAttachments to mdedit
mdedit: added ability to upload files, added properties