0

I'm using the new (3.5+) media upload API to open a media modal dialog from a post meta box, and select a file from the media library (as per https://github.com/thomasgriffin/New-Media-Image-Uploader).

I need to control whether or not files uploaded through this dialog are attached to the current post or not. I'm looking through media-views.js and can't see anything to control this. Any ideas?

1 Answer 1

0

Solved, thanks to this post by Mike Jolley (see 'Passing data to the uploader script').

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.