Media Uploader Script Not Working?

jQuery(document).ready(function($){

var mediaUploader;

  mediaUploader= wp.media.frames.file_frame = wp.media({
    title: 'Upload Picture',
    button:{
        text: 'Choose Picture'
    },
    mutiple: false;
});

$('#button-upload').on('click',function(e) {
    e.prevenDefault();
    if(mediaUploader){
        mediaUploader.open();
        return;
    }
});

});

I triggered every script and the jQuery not working. Any thing wrong in my code

Read more here: Media Uploader Script Not Working?

Leave a Reply

Your email address will not be published. Required fields are marked *