Patient Portal Document Upload

Good morning:

Our use case is patient needs to upload photo id to confirm identity given current telehealth needs. Ideally, the patient will leverage the portal and upload id to either the photo id field within demographics such that this is included during patient registration (perhaps replacing the existing field, ideally storing in the database), or some other LBF. Does anyone have advice on this? There may be other documents that may need to be uploaded by the patient as well, as PDF or video.

I’ve found the following snippet which might be the right way to go:
rel-502/portal/patient/fwk/libs/verysimple/HTTP/FileUpload.php

I wonder, has this functionality been removed or otherwise shelved because it presents security concerns?