Calling get_document_id() function in handle_uploaded_document