Get an error message "invalid file extension"
When you create the field file, you need to definy the extention.
You have already created the field but you can always modify it.
Go on your content type, edit the field file adding pdf on "Allowed file extensions *"

You can add all the extensions you want. Separate extensions with a space or comma and do not include the leading dot.