External files in Media Library

Description

Add one or more files with their URLs under Media > “Add new media file”. You can use this way added external files in all places where the media library is used.

Embed your files from Google Drive, YouTube, Vimeo, FTP, local paths or many other possible sources. Use them in your preferred editor such as Block Editor, Elementor, Divi, Classic Editor, WpBakery and many more.

Use an external data source for product images in your WooCommerce-based store.

Mass-Import

You can import complete directories from any of the supported TCP protocols. Just enter the directory as path to import and the plugin will import any supported files from it.

TCP Protocols

You can use the following TCP-protocols to import external files in your media library:

  • http://
  • https://
  • ftp://
  • ftps://
  • sftp://
  • ssh://
  • file://

Some of them require credentials, for http(s) it is optional.

Checks

The plugin checks for you automatically on a regular basis whether the external hosted files you have embedded are still available.

Repository and documentation

You find some documentations here.

The development repository is on GitHub.

Screenshots

  • Field to add external files in Media > Add New Media File.
  • Dialog to add URLs of external files.

Installation

  1. Upload “external-files-in-media-library” to the “/wp-content/plugins/” directory.
  2. Activate the plugin through the “Plugins” menu in WordPress.

FAQ

Can I prevent other WordPress-users from adding external files?

Yes, you can select under Settings > “External files in Media Library” which roles gets the ability to add external URLs as files.

Can I also embed password-protected external files?

Yes, but these files are integrated locally and not from the external URL so that your visitors can access them without any problems.

Can I embed files from FTP?

Yes, see our documentation.

Can I import complete directories?

Yes, you can. Just enter the directory to import.

Can I import from my local server?

Yes, you can. Simply enter the absolute path with file-protocol, e.g.: file:///var/www/path/to/file.png – see also our documentation.

Can I import external product images for WooCommerce?

Yes, simply enable the setting under Settings > “External files in Media Library” > WooCommerce. Add your external URLs
for images in the CSV you want to import as it is already possible with WooCommerce. They will be handled as
external files by this plugin. This also allows you to use all protocols supported by the plugin for importing these files.

Is there a WP CLI command?

Yes, there are many options on WP CLI, see our documentation.

Google tells me that the app is not verified when I connect Google Drive – why?

According to Google guidelines, an app that is used to connect to the Google Drive API is only checked and confirmed once it has 100 active users. As long as less than 100 active users use this function via this plugin, you will always see this message. You can confirm it via “unsecure” and still complete the connection of your Google Drive with your WordPress website.

Reviews

October 2, 2024 5 replies
Hi there,Wanted to give it a try but it took my site down![29-Sep-2024 09:00:07 UTC] PHP Fatal error: Uncaught TypeError: Unsupported operand types: string & int in /home/xxxxxxxxxxxxx.com/public_html/wp-includes/class-wp-rewrite.php:1036Stack trace:#0 /home/xxxxxxxxxxxxx.com/public_html/wp-includes/class-wp-rewrite.php(1410): WP_Rewrite->generate_rewrite_rules()#1 /home/xxxxxxxxxxxxx.com/public_html/wp-includes/class-wp-rewrite.php(1509): WP_Rewrite->rewrite_rules()#2 /home/xxxxxxxxxxxxx.com/public_html/wp-includes/class-wp-rewrite.php(1884): WP_Rewrite->refresh_rewrite_rules()#3 /home/xxxxxxxxxxxxx.com/public_html/wp-includes/rewrite.php(282): WP_Rewrite->flush_rules()#4 /home/xxxxxxxxxxxxx.com/public_html/wp-content/plugins/external-files-in-media-library/classes/eml/Controller/class-proxy.php(225): flush_rewrite_rules()#5 [internal function]: threadi\eml\Controller\Proxy::do_refresh()#6 /home/xxxxxxxxxxxxx.com/public_html/wp-content/plugins/external-files-in-media-library/classes/eml/class-transient.php(186): call_user_func()#7 /home/xxxxxxxxxxxxx.com/public_html/wp-content/plugins/external-files-in-media-library/classes/eml/class-transients.php(152): threadi\eml\Transient->display()#8 /home/xxxxxxxxxxxxx.com/public_html/wp-content/plugins/external-files-in-media-library/inc/admin.php(1241): threadi\eml\Transients->check_transients()#9 /home/xxxxxxxxxxxxx.com/public_html/wp-includes/class-wp-hook.php(324): eml_admin_notices()#10 /home/xxxxxxxxxxxxx.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()#11 /home/xxxxxxxxxxxxx.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()#12 /home/xxxxxxxxxxxxx.com/public_html/wp-admin/admin-header.php(303): do_action()#13 /home/xxxxxxxxxxxxx.com/public_html/wp-admin/plugins.php(624): require_once(‘/home/1340234.c…’)#14 {main}thrown in /home/xxxxxxxxxxxxx.com/public_html/wp-includes/class-wp-rewrite.php on line 1036
August 1, 2024 1 reply
Highly recommend this plugin for anyone looking to enhance their media management with ease!
April 12, 2024
This plugin simply does what it says it does.This allows me to have images hosted on a Discord channel directly on my Wordpress website without having to host a single one of them. If I could find just one little thing to add, it would be to see in real time which link is being processed. Bravo to the developer, great work !
Read all 3 reviews

Contributors & Developers

“External files in Media Library” is open source software. The following people have contributed to this plugin.

Contributors

“External files in Media Library” has been translated into 4 locales. Thank you to the translators for their contributions.

Translate “External files in Media Library” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

3.1.0

  • Added support for image meta-data (like caption) for external hosted images
  • Added more hooks
  • Added Third Party support for Block Editor and Elementor
  • Added link to support forum on our plugin in plugin list
  • Added link to support forum in add URLs dialog
  • Optimized the settings objects for future independence from this plugin
  • Usage of external embedded YouTube URLs in Block Editor is now possible
  • Choose your YouTube videos from local media library in Elementors Video widget
  • Remove some unused codes
  • Fixed refreshing of permalinks (which as been run on every request until now)
  • Fixed potential error on WP CLI function to add Google Drive connection
  • Fixed missing support for plugin PreventDirectAccess
  • Fixed some typos

older changes