Download all attachments to local storage before updating document