When I select a PDF file to attach, all that shows up is a link to the PDF file instead of the PDF

When I select a PDF file to attach and select "Open", all that's put in the Note is a URL or the file name. The document itself does not appear