Function Get File Name From Upload

Function Get File Name From Upload

Hi everyone,

I created a custom field in the Quotes module to upload file attachments. (Name Field is Allegati), and I created a custom field (in quotes module) with name NAllegati.

I would need a function that populates the "NAllegati" field with the names of the attached files in the "Allegati" field.

The final result is to create a PDF with the quota and the names of the attached files.

Can you help me?

Thank you to all