• Hello, I’ve been trying to find a plugin to allow me to import into the Media Library with Webdav. I’m amazed that such a plugin doesn’t seem to exist. All the webdav mentions are for backup plugins to upload backups to remote.

    I just want to upload to WordPress files from a media management server (instead of having to first download to local and then upload to WP).

Viewing 6 replies - 1 through 6 (of 6 total)
  • I am not very familiar with WebDav. Ultimately, this is only accessible via http, isn’t it? Do you have the individual URLs to hand or do you want to import the entire directory in one rush?

    Moderator bcworkz

    (@bcworkz)

    Moving files from an online resource into WP is referred to as “sideloading”. The function wp_handle_sideload() will handle the WP end of things, but it only works once the files have already been placed in the WP server’s /tmp directory. How the files get there is outside the scope of WP itself. There are case specific plugins that manage getting the files to the WP server. For example there’s a plugin to sideload Dropbox files. I’m not aware of any plugins that implement WebDAV methods. This does not mean they do not exist.

    If none can be found, it’s likely something that would need to be custom developed. Before going down that road, does your media server support any other protocol such as conventional HTTP GET requests or similar API support? Or FTP? Anything that you’re more likely to find a plugin for instead of WebDAV support.

    Thread Starter Alex T.

    (@polaatx)

    Hello, thank you for your replies. I’ve been able to setup a webdav account with my share hosting account, targeting a specific directory. Then I use the ADD FROM SERVER plugin to imoprt into the Media Library.

    So for whoever facing same issue: I never did find a plugin that adds webdav functionality to WordPress. I was just lucky that my host (Chemicloud) already has a webdav server installed.

    @threadi Webdav definitely works on https. I am not sure it even works on http but i could be wrong.

    Do you want to load the entire directory in one go? Or do you want to have a dialog in WordPress to select the files from your webdav you want to import? Or are you only interested in individual files that you want to import by its URL?

    Thread Starter Alex T.

    (@polaatx)

    Hello @threadi, I already have the ability to import individual files by URL into WP. There are several plugins that do this. But that’s timeconsuming when you have a bunch of pics. I want to create a new directory in my photo management server (It’s called Photoprism) and be able to upload them to wordpress. I have thousands of pics in photoprism. i just want to be able to publish a few at a time not move them all to wordpress. I hope this makes sense.

    So workflow:

    1. choose the pics I want to publish in PP.
    2. put them them in a new folder.
    3. Click to upload the files to a folder inside WP’s wp-content directory.
    4. Use the ADD FROM SERVER plugin to import into WP’s Media Library.

    The goal is avoid having to first download the files from PP to local and then upload to WP.

    I only asked in such detail because one of my own plugins would also make this possible – but (so far) not the bulk import you need. Unless you have a list of all external WebDav-URLs you want to import (and not just the root directory of the files). That would be feasible.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Import media via Webdav’ is closed to new replies.