document uploader and upload end-point