External files in media library

Description

Add one or more files under Media > “Add new media file”. You can use the files in all places where the media library is used.

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

In the settings you can define whether image files are hosted locally in your hosting or externally.

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 users from adding external files?

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

Can I also embed password-protected external files?

No, only public files can be used.

Reviews

Oktubre 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
Agosto 1, 2024 1 reply
Highly recommend this plugin for anyone looking to enhance their media management with ease!
Abril 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

1.0.0

  • Initial release

1.0.1

  • Updated compatibility-flag for WordPress 6.4
  • Compatible with WordPress Coding Standards 3.0
  • Fixed error in settings-save-process
  • Fixed typo in translations

1.0.2

  • Added hook documentation
  • Added hint for hook documentation in settings
  • Optimized handling of upload-form if nothing has been added there
  • Removed language files from release

1.1.0

  • Added multiple hooks
  • Prevent usage of plugin with older PHP than required minimum
  • Optimized content type detection
  • Optimized attachment title handling with special chars
  • Updated compatibility-flag for WordPress 6.4.3
  • Updated dependencies

1.1.1

  • Proxy-slug will now also be changed with simple permalinks
  • Updated compatibility-flag for WordPress 6.5
  • Updated hook documentation
  • Fixed support for spaces in URLs
  • Fixed typo in examples in hook-documentation
  • Fixed possible notice in transient-handler
  • Fixed usage of proxy with simple permalinks

1.1.2

  • Fixed possible error during check for current screen
  • Fixed usage of URLs with ampersand on AJAX-request

1.2.0

  • New import dialog with progress and extended info about the import
  • Show proxy hint on file only if proxy is enabled
  • Optimized style for box with infos about external files
  • Updated compatibility-flag for WordPress 6.5.2
  • Updated dependencies

1.2.1

  • Added support for hook of plugin “Download List Block with Icons” for mark external files with rel-external
  • Updated compatibility-flag for WordPress 6.5.3
  • Updated dependencies

1.2.2

  • Updated compatibility-flag for WordPress 6.6
  • Updated dependencies
  • Fixed potential error on attachment pages

1.2.3

  • Updated dependencies

1.3.0

  • Added possibility to switch the hosting of images during local and extern on media edit page
  • Added new column for marker of external files in media table
  • Compatibility with plugin Prevent Direct Access: hide options for external fields
  • Fixed some typos
  • Fixed wrong proxied URL after successful import of images