The button to attach a file is there but it seems that it just doesn't work and the file isn't saved.

EDIT2:
Following the suggested solution, now my server is indeed saving the pdfs I attach to my form.

Now I want to understand why the associated url (from a pdf) sends me direct to a page where the system asks where to save the pdf (aka it's downloading it automatically). Here goes the associated part of the code: