How to upload a file URL to the postgres database using process variables. Also how to call that uploaded file in a form again to download it

I have prepared a form using the process variable. Now I have to attach a file from the user, This File must be uploaded on the database and another user will download it from another form. So how to upload files to the database and call them for downloading