Externe Dateien in der Mediathek

Description

Füge eine oder mehrere Dateien mit ihren URLs unter Medien > «Neue Mediendatei hinzufügen» hinzu. Du kannst diese externen Dateien überall dort verwenden, wo die Mediathek zum Einsatz kommt.

Besonderheit

Bette deine Dateien aus AWS S3, DropBox, Google Drive, Google Cloud Storage, FTP, deinem lokalen Hosting, einer anderen Website in deiner Multisite, anderen WordPress-REST-APIs, YouTube oder vielen anderen möglichen Quellen ein. Verwende sie in deinem bevorzugten Editor wie Block Editor, Elementor, Divi, Classic Editor, WpBakery und vielen anderen, als ob die Dateien normal in deiner Mediathek gespeichert wären.

Synchronisiere externe Verzeichnisse, die Dateien enthalten, automatisch in von dir festgelegten Intervallen mit deiner Mediathek.

Und noch mehr:

✅ Füge die Dateien mit ihren externen Daten hinzu. So erhältst du das reale Datum, was beispielsweise für SEO hilfreich ist.
✅ Importiere sie als echte Dateien, anstatt sie nur in deiner Mediathek zu verlinken. So kannst du beliebig viele Dateien in dein Projekt importieren.
✅ Überprüfe die Verfügbarkeit (nur für HTTP-Verbindungen), um sicherzustellen, dass die externen Dateien tatsächlich verfügbar sind.
✅ Konfiguriere, welche Benutzer in deinem Projekt die Optionen für externe Dateien verwenden darf.
✅ Extrahieren ZIP-Dateien aus beliebigen externen Quellen in deine Mediathek.

Unterstützung für andere Plugins

Verwende externe URLs, wenn du Produkte über CSV in einen WooCommerce-Shop importierst (einschließlich der Zugangsdaten für diese, z. B. über FTP).

Füge externe Dateien zu den Download-Listen von Download-Listen mit Icons hinzu.

Sortieren deine externen Dateien in einem Ordner von CatFolders, Filebird, Folderly, Folders, iFolders, Media Library Organizer oder ordne sie in Kategorien von Enhanced Media Library und Real Media Library Lite ein. Du kannst sie in diese Plugins importieren und synchronisieren.

Und kompatibel mit Network Media Library für die Verwendung in Multisites.

Außerdem ist es mit mehrsprachigen Plugins wie Polylang kompatibel, um die Mediendateien zu übersetzen.

Das Plugin ist auch mit einer Vielzahl anderer Plugins kompatibel, die hier nicht aufgeführt sind. Sollte entgegen den Erwartungen etwas nicht richtig funktionieren, melde dies bitte im Support-Forum.

REST API

Du kannst deine externen Dateien mit REST-API-Anfragen verwalten, wie hier beschrieben.

Massen-Import

Du kannst vollständige Verzeichnisse aus jedem der unterstützten TCP-Protokolle importieren. Gib einfach das Verzeichnis als Pfad zum Importieren ein, und das Plugin importiert alle unterstützten Dateien daraus oder verwendet die externen Dienste, um zum zu importierenden Verzeichnis zu navigieren.

Für große Verzeichnisse gibt es auch eine automatisch verarbeitete Warteschlange. Du kannst für große Verzeichnisse auch die WP CLI verwenden.

TCP Protokolle

Du kannst die folgenden TCP-Protokolle verwenden, um externe Dateien in deine Medienbibliothek zu importieren:

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

Einige von ihnen erfordern Zugangsdaten, für http(s) sind diese optional.

Dienst-Plugins

Die Unterstützung für zusätzliche Plattformen als externe Quellen wird durch zusätzliche Service-Plugins ermöglicht. Diese sind derzeit:

Externe Dateien von AWS S3 in der Mediathek (inkl. Unterstützung für AWS S3, Backplaze S3, Cloudflare R2 und DigitalOcean Spaces)
Externe Dateien vom Google Cloud Storage in der Mediathek
Externe Dateien von Google Drive in der Mediathek
Externe Dateien von WebDav in der Mediathek (inkl. jedem WebDav-Anbieter wie NextCloud oder Seafile)

Du kannst sie manuell oder im Backend deines WordPress unter Medien > «Externe Dateien hinzufügen» installiert werden.

Anwendungsfälle

Hier sind einige Beispiele, wie dir dieses Plugin helfen kann:

💡 Speichere besonders große Dateien an einem anderen Speicherort, um Speicherplatz in deinem Hosting zu sparen.
💡 Importiere Dateien, die ein Grafikdesigner zur Verfügung stellt, in ein gemeinsames Verzeichnis.
💡 Synchronisiere automatisch Fotos aus deinem Urlaub, um sie auf deiner Website anzuzeigen.
💡 Verwende regelmäßig neu erstellte PDF-Dateien aus einem gemeinsamen Verzeichnis für die Ausgabe auf deiner Website.
💡 Beziehe Bilder für deine Produkte aus einem zentralen Verzeichnis.

Finde weitere hier

ClassicPress

Dieses Plugin ist kompatibel mit ClassicPress.

Repository, Dokumentation und Zuverlässigkeit

Einige Dokumentationen findest du auf dieser Plugin-Seite und in GitHub.

Das Repository der Entwicklung ist auf GitHub.

Jede Version dieses Plugins wird nur veröffentlicht, wenn sie die folgenden Bedingungen erfüllt:

✅ PHPStan-Prüfung auf mögliche Fehler.
✅ Einhaltung der WordPress-Codierungsstandards.
✅ Keine Fehler bei der PHP-Kompatibilitätsprüfung.
✅ Keine Ausnahmen bei PHP-Unit-Tests.

Screenshots

  • Feld um externe Dateien in Medien > Neue Mediendatei hinzufügen zu ergänzen.
  • Dialog zum Hinzufügen der URLs von externen Dateien.

Installation

  1. Lade «external-files-in-media-library» in das Verzeichnis «/wp-content/plugins/» hoch.
  2. Aktiviere das Plugin über das Menü «Plugins» in WordPress.

FAQ

Warum müssen für einige Quellen zusätzliche Plugins installiert werden?

Es gibt zwei Gründe dafür:

a) Einige der externen Quellen verwenden Bibliotheken, deren Lizenzen im WordPress-Repository nicht zulässig sind. Beispielsweise verwendet die Bibliothek «aws/aws-sdk-php» für AWS die Apache-Lizenz. Diese ist nicht mit der GPL kompatibel.

b) Mit all diesen Bibliotheken wäre das Plugin zu groß, um es im WordPress-Repository zu veröffentlichen.

Kann ich andere WordPress-Benutzer daran hindern, externe Dateien hinzuzufügen?

Ja, du kannst unter Einstellungen > «Externe Dateien in der Mediathek» > Berechtigungen festlegen, welche Rollen die Möglichkeit haben sollen externe Dateien in der Mediathek hinzuzufügen oder zu löschen.

Kann ich auch passwortgeschützte externe Dateien einbetten?

Ja, aber diese Dateien werden lokal gespeichert und nicht von der externen URL, so dass deine Besucher problemlos darauf zugreifen können.

Kann ich Dateien von FTP einbinden?

Ja, du kannst sie manuell hinzufügen oder mit dem FTP-Dienst unter Medien > «Externe Dateien hinzufügen» hinzufügen.

Kann ich komplette Verzeichnisse importieren?

Ja, kannst du. Gibt einfach das zu importierende Verzeichnis an oder verwende eines der Tools unter Medien > Externe Dateien hinzufügen. Alle Dateien in dem Verzeichnis würden importiert werden.

Gelten die Größenbeschränkungen für Dateien genauso wie für normal hochgeladene Dateien?

Nein, es gibt keine festen Größenbeschränkungen für externe Dateien. Beschränkungen werden nur durch deinen eigenen Speicherplatz vorgegeben, je nachdem wo du die Datei speicherst.

Kann ich von meinem lokalen Server importieren?

Ja, kannst du. Verwende einfach das Tool unter Medien > «Externe Dateien hinzufügen» oder gibt den absoluten Pfad mit file-Protokoll an, z.B.: file:///var/www/path/to/file.png – siehe auch in unserer Dokumentation.

Kann ich externe Produktbilder für WooCommerce importieren?

Ja, aktiviere einfach die Einstellung unter Einstellungen > «Externe Dateien in der Mediathek» > WooCommerce. Füge deine externen URLs für Bilder in die CSV-Datei ein, die du importieren möchtest, wie es bereits mit WooCommerce möglich ist. Sie werden dann als externe Dateien von diesem Plugin behandelt. So kannst Du auch alle vom Plugin unterstützten Protokolle für den Import dieser Dateien verwenden.

Gibt es auch ein WP CLI Kommando?

Ja, es gibt viele Optionen in der WP CLI, siehe: unsere Dokumentation.

Google sagt mir, dass die App nicht verifiziert ist, wenn ich Google Drive verbinde – warum?

Laut Google-Richtlinien wird eine App, die zur Verbindung mit der Google Drive API verwendet wird, erst geprüft und bestätigt, wenn sie 100 aktive Nutzer hat. Solange weniger als 100 aktive Nutzer diese Funktion über dieses Plugin nutzen, wird diese Meldung immer zu sehen sein. Du kannst sie über «unsicher» bestätigen und trotzdem die Verbindung deines Google Drive mit deinem WordPress-Website herstellen.

Reviews

2. Oktober 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
1. August 2024 1 reply
Highly recommend this plugin for anyone looking to enhance their media management with ease!
12. April 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 4 reviews

Contributors & Developers

“Externe Dateien in der Mediathek” is open source software. The following people have contributed to this plugin.

Contributors

“Externe Dateien in der Mediathek” has been translated into 4 locales. Thank you to the translators for their contributions.

Translate “Externe Dateien in der Mediathek” into your language.

Interested in development?

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

Changelog

5.0.0

  • Added an intro for first time users of this plugin
  • Added REST API support for handling of external URLs from other WordPress-projects in your media library
  • Added support for a service plugin to use AWS S3 as external source of files
  • Added support for DropBox as external source of files
  • Added support for a service plugin to use Google Cloud Storage as external source of files
  • Added support for a service plugin to use Google Drive as external source of files
  • Added support to use files from other websites in your multisite
  • Added support for a service plugin to use WebDav as external source of files, e.g., usable with your Nextcloud
  • Added a hook to import external URLs through third party plugins (for custom development)
  • Added new URL-import dialog in backend
  • Added option to delete synchronized files of single directory archive with one click
  • Added option to export each newly uploaded file in media library to external sources, which are reachable via web
    -> optionally, you can delete the local files, thereby outsourcing (offloading) all your files and saving storage space
  • Added option to export each file in media library to external source as described above
  • Added option to export only files with specific file types or sizes, configurable as global setting for per external source
  • Introduced file handling extensions and added 3 of them (date, queue, real import)
  • Added option to use the date of external files in add-dialog (2nd file handling extension)
  • Added option to actually import files in media library (this disables all external files functions for these files)
  • Added option to choose a specific date for each file to import
  • Added options to choose extensions for export, import and synchronization and there global or custom settings
  • Added paginated AJAX-import to prevent timeouts for some supported external sources
  • Added these 3 new options also as parameter on WP CLI command to import URLs
  • Added new options for WP CLI to manage external sources
  • Added option to choose, which of these extensions should be available for the handling of files
  • Added file type specific icons in directory listings
  • Added unique identifier for each import to prevent to avoid confusion when multiple users and imports
    are occurring simultaneously
  • Added import date for each external URL
  • Added new table column in media library, which shows basic URL information
  • Added Taskfile as third way to build plugin release
  • Added check for PHP strict usage on every release with PHPStan
  • Added check for compatibility with WordPress Plugin Checker on every release
  • Added support for download lists of the plugin «Download Lists with icons» incl. sync of them
  • Added support for the plugin «Folders» to import external files in its folders incl. sync of them
  • Added support for the plugin «Media Library Organizer» to import external files in its categories incl. sync of them
  • Added support for the plugin «iFolders» to import external files in its folders incl. sync of them
  • Added support for the plugin «Real Media Library Lite» to import external files in its folders incl. sync of them
  • Added support for the plugin «Advanced Media Offloader» to prevent the offloading of already external files
  • Added support for the plugin «Media Library Assistant» to import external files in its folders incl. sync of them
  • Added compatibility with the plugin «Media Cloud Sync»
    -> do not sync external files with external clouds
    -> do sync real imported external files
  • Added new file types «PDF» and «ZIP» for better supporting the handling of these files
  • Added info about external files in attachment modal
  • Added option to use the files dates during synchronization
  • Added option to import real files during synchronization (they are just imported if they are no duplicate)
  • Added option to run synchronisation for selected external sources via WP CLI
  • Added privacy hint as checkbox in every import dialog, configurable in user settings
  • Added WordPress Importer entry
  • Added info in admin footer for pages provided by the plugin or for which it makes extensions on the called pages
  • Added support for plugin «WP Extra File Types» to enabled additional possible file types to use as external files
  • Added option to load upload directory via local service
  • Added option to use our plugin name in each HTTP-header User Agent (default enabled)
  • Added success sound after import has been run (can be disabled)
  • Added option to reset the plugin in backend settings (in preparation for Cyber Resilience Act)
  • Added option to unzip from an external password protected ZIP-files
  • Added options to open and extract zip-files, which are already saved in media library
  • Added support to open and extract multiple zip formats: .zip, .gz, .tar.gz
  • Added support for .avif files
  • Added option to show what will be done in import dialog
  • Added support for filenames in other writing systems (like Farsi)
  • Added option to hide the review begging
  • Added new extension to allow import and export of external files in JSON-format (default disabled)
  • Added export and import of settings for external sources
  • Added options for manage export settings via WP CLI
  • Added support to generate attachment entries for each external file with Polylang
  • A unique job ID has been added to each imported file to enable filtering of imported external files in a single task
  • Added PHP unit tests for essential functions of this plugin
  • Added SBOM generation on GitHub for each release
  • Added support to import service plugins, which provide support for more platforms not bundled in the main plugin
  • Added support to install WordPress plugins from external sources
  • Added support for multisite-installations: manage service plugins in your network
  • Added capability sets to fast configuration of capabilities for each tool and service
  • Added option to revert the last import
  • Added configurations to quickly configure the plugin for a specific task
  • Added output of all (not private) settings in site health report
  • Added site health checks for cronjobs, and the availability of external sources
  • Added option to export the installation hash key, which is used for any encryption
  • Changed ALL hooks to prefix with 4 characters to match WordPress Coding Standards
  • Kompatibel mit WordPress 6.9
  • Renamed «Directory Archive» to «Your external sources»
  • Show processed file URLs during manual started synchronization
  • Hide import button for unsupported files in directory archive
  • Small optimizations on multiple codes
  • Using fallback to default interval for each our events if setting of not available
  • Show hide and rating on directory archive listing
  • Show hint of user has configured Google Drive in a version before 5.0.0 to install the new separate plugin
  • Directory reload no shows the progress
  • Optimized ZIP service: no also allows to extract complete ZIP files in media library
  • Updated some unfavorable text descriptions
  • Updated crypt-methods for any privacy data
  • Abhängigkeiten aktualisiert
  • Active folder in directory listing is now marked
  • Optimized styling of directory listings
  • Standardize the usage of timestamp as last-modified date for each service and protocol
  • Optimized check if a mime type is allowed in directory listing and during import
  • Optimized detection of multiple URLs from textarea-field with different line breaks
  • Optimized WooCommerce CSV-import with URLs for external files
  • Re-arranged the settings for a better overview
  • Multiple new hooks and updated hook documentation
  • Updated settings object for better performance and more possibilities
  • Extended the documentation in GitHub for all services we provide
  • Extended logging is automatically enabled if WordPress is running in development mode
  • Moved availability check in extension
  • Renamed filter «eml_import_url_before» to «eml_import_url»
  • Renamed filter «eml_blacklist» to «eml_prevent_import»
  • Hosting of files can now only be changed by users with the capability to upload external files
  • Synced files will be linked with its linked source in media library
  • Prevent deletion of sources, which has active synced or exported files
  • Import of files during WooCommerce CSV supports now also usage of credentials (you could import files e.g. from FTP)
  • Using new transient object in backend for hints and errors
  • Cleanup the return value for external files via get_attached_file()
  • File protocol uses now «WP_Filesystem» for each file interaction
  • Enabled search field for URLs in logs
  • Dropbox file URLs can now be imported without any API key if they are public available
  • External sources are now saved user-specific
    -> only administrators see all entries
    -> advanced option allows to show all entries for alle users
  • Settings for most services are now saved on user and not global, but can be set to global
  • External sources can now get an individual name
  • ZIP files cannot also be opened via any supported TCP protocol
  • Save used service on each external file
  • Any local path will be sanitized
  • Optimized URL shortener
  • Now also usable as «must use»-plugin (requires a additional file to enable it)
  • Wrong usage of import URLs from directory archives if they are using a path after the domain
  • Fixed wrong link to queue list in settings and in dialog
  • Fixed missing file on FTP listing if the previous files thumbnail could not be created
  • Fixed missing file preview if PHP-imagick-library is not used
  • Fixed usage of ZIP service on single uploaded file
  • Fixed wrong capability to access the directory archive for non-administrator users
  • Fixed disabling of check files event
  • Fixed detection of correct file type during import process
  • Fixed potential error with attached files if they do not exist
  • Fixed missing visible progress-bar during synchronization
  • Fixed missing saving of actual availability of each file (all were available any time)
  • Fixed REST API endpoints to not using WP_Error for responses
  • Fixed WP CLI command to delete error entries from queue
  • Removed the hook «eml_import_fields» as we do not use fields in this form anymore
  • Removed the hook «eml_import_url_after» as it could be better used via the hook «eml_after_file_save»
  • Removed support for Google Drive in the main plugin, a second service plugin is now necessary to use it

ältere Änderungen