I am working on a plugin that involves the upload of an image to the media library. Once uploaded I want to display the same dialog box that you get when you use the normal file upload from wordpress (inside the red box on the image below). I have it so it uploads the image and adds it to the media library. Now I just want to display that dialog box. Can anyone help?
For reliable, flexible uploading, you should try: PLUpload http://www.plupload.com/index.php Example of implementation code: http://www.plupload.com/example_queuewidget.php
Thanks for the advice but I am not looking for that. Like I said I have the uploading already sorted. I now need to just display the part that are marked in red in the attached picture.
This is the function you'll need to execute: http://hitchhackerguide.com/2011/02/12/media_upload_type_form/