• I’m building a plugin which adds a new media tab. In this tab i display an iframe in which i can select images from another source and upload them to wordpress (using ajax).

    This works just fine, the only problem I have now is that after I have uploaded my new image, I have to refresh the post I’m on to see the newly uploaded image(s).

    What I want to achieve is something like:
    wp.media.[go to browse uploaded images];
    wp.media.[refresh the list]

    I can’t achieve any of them. wp.media.frame.close(); closes the window and i get an error on .open(), but even if i manually click “Add media” the last state is visible. If i go to the browsing mode and for example sort the media by a date or something, it get the newly uploaded images.

    Any suggestions of how to achive this?
    Found this thread but almost nothing here worked at all;
    http://wordpress.stackexchange.com/questions/78230/trigger-refresh-for-new-media-manager-in-3-5

The topic ‘Change view and refresh wp.media’ is closed to new replies.