• Hello, I am wondering whether anyone has made a plugin to add external images from another server into the wordpress media library.

    When adding media to a post or page you can insert media from a url as seen here: https://goo.gl/iFLctz

    I would like to be able to use the media library just like I usually would but would like to be able to have media in the library that is from an external source.

    Add directly to the media library: https://goo.gl/UlBpGa

    Adding from a url to a gallery which in turn adds the media to the media library like when uploading media directly to the server: https://goo.gl/UlBpGa

    Resulting in the media coming from another server: https://goo.gl/XitFXI

    That way the images can still be called by [gallery id='']

    If there isn’t a plugin for this feature how hard would it be to create a plugin that adds the features so its native like shown in the mockups?

    Your input is greatly appreciated.

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    I’m not that familiar with the inner workings of the media library, but I’m fairly sure it will insist on copying media to the WP server if you try anything short of a major rewrite. I could be wrong.

    FYI, you can bring in outside media with wp_handle_sideload(), but of course this does not involve the media library in any way, so you’re on your own developing a user interface around it.

    You can also bypass the default [gallery] code by adding a filter that brings in outside media registered via sideload, but again, this has nothing to do with the media library. In other words, it’s feasible to use outside media, but you’re left without the benefits of the media library.

    Sorry to quash your wonderful plan, I’d love to be proven wrong, but I’d be surprised if I am wrong.

Viewing 1 replies (of 1 total)

The topic ‘Media from Another Server’ is closed to new replies.