QR code link to file attachments

How to rename uploaded files based on an ID, and link them to downloadable attachments when scanning the QR code?

the dp.png must be rename to 2024-0000030.png