file upload issue
-
i tried using the below code to add a file upload for pdf:
array(
‘name’ => ‘Test File’,
‘desc’ => ‘Upload an image or enter an URL.’,
‘id’ => $prefix . ‘test_image’,
‘type’ => ‘file’,
‘allow’ => array( ‘url’, ‘attachment’ ) // limit to just attachments with array( ‘attachment’ )
),It adds the link to my “create new page” page that i want, I can click the button “upload” and it opens the default wordpress upload page, where i can see my current images, and i can upload new images, but when I click the use this image button, nothing happens. THis page also filters out PDFS, which is want i really want to use, but it does let me upload those as well.
Could someone tell me what I’m doing wrong?
The topic ‘file upload issue’ is closed to new replies.