• Resolved AlanP57

    (@alanp57)


    Hello,

    Before installing and activating the Gutenberg plugin the plugin we developed, Media Library Folders Pro, could refresh the contents of the media uploader by using this code:

    wp.media.frame.content.get().collection.props.set({ignore: (+ new Date())});

    But with Gutenberg it no longer works. So now we are asking for someone from the Gutenberg development team to please provide us the code to use to refresh the contents of the media uploader.

    This question was asked previously and has been ignored at this link, https://www.ads-software.com/support/topic/cannot-insert-images-from-maxgalleria-media-library-plus-pro/, saying to the developer, that the developer has to solve the issue. I am asking you guys who wrote Gutenberg to please explain how to refresh the media uploader contents.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter AlanP57

    (@alanp57)

    This issue has been resolve in the Gutenberg plugin Version 4.1.1.

    • This reply was modified 6 years ago by AlanP57.
    Thread Starter AlanP57

    (@alanp57)

    I’ve tested Media Library Folders Pro with WordPress 5.0 RC 2 and this line of code for refreshing the media library,

    wp.media.frame.content.get().collection.props.set({ignore: (+ new Date())});

    is no longer working as it was previously.

    Thread Starter AlanP57

    (@alanp57)

    Now it is working with RC 3.

    Thread Starter AlanP57

    (@alanp57)

    I have found that this issue also exists when selecting a featured image in version 5.0 of WordPress. This code works with the classic editor to refresh the media uploader when selecting a featured image

    wp.media.frame.content.get().collection.props.set({ignore: (+ new Date())});

    But with the Gutenberg editor it generates “TypeError: wp.media.frame.content.get(…) is null”

    Thread Starter AlanP57

    (@alanp57)

    The issue wth selecting the featured images in Media Library Folders Pro has been fixed in 5.0.2 RC.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Unable to refresh media uploader’ is closed to new replies.