When you try to upload a document to an event like birth or death, it will not attach to this event after you have click on X at upload dialog.
You will need to click add document again and then select previous uploaded document and first then it will attach to the event.
Just to be aware.
There is no Save button at the upload dialog at event, so X has to be used