Document upload and update