add function to upload document - allow to up type .pdf .docx .doc