I am trying to have a front-end form upload a PDF file as a new attachment post type (media post).
The form does create a new attachment post, but how to actually upload the file and associate it to the attachment post? I have created a file field for the PDF, and am using uploader -> basic (no wp uploader interface, simple file selection).
ACF pro 5.6.5 and latest wp version.