I have a custom page template, it lets users upload files using media_handle_upload() so everything is stored consistently in wp-content/uploads/20yy/mm/
I also store the filenames (and user_id, etc.) on a separate table tbl_files
I display a list of these files which should be available to download, and I want to do it using
Read more here:: Dynamically create Permalinks for uploaded files?