Quite most of the time, you do require the need that you will be able to integrate the WordPress media uploader into your plugin. Well, this can be possibly done with the help of snippet below.

Snippet Source/Credit: FatFolderDesign