debug upload documents