File uploads storage location and relationships
I am rewriting a project that has existing data. The last part I am struggling with is the attachments linked to insurance claims. I have a claims table and a claim_attachments table.
I need help with the following 2 aspects:
When I upload multiple files I would like them stored in public/$claim_id/$preserved_file_name. How would I go about specifying the claim_id in the path of the storage?
Do I also need a link table that holds reference of the attachment file name and claim_id's?
Thanks for the help.
0 Replies