The External Media module provides a universal file picker that allows users to import files from services like Dropbox, Box, Google Drive, and OneDrive, as well as from any remote URL, directly into Drupal. It integrates with both Image and File fields, respecting field settings and offering granular control over plugin visibility and permissions.
What is the External Media module?
External Media is a universal file picker module with support for Dropbox, Box, Google Drive, OneDrive or any remote URL to import them into Drupal.
Form Element
The new form element would allow you to add external services such as Google Drive, Dropbox, Box, OneDrive, AWS, Unsplash, Instagram, Pixabay, Pexels and other services, in addition to regular file choose field.
All with just adding External Media module as a dependency.
This is how it could be done in your custom forms:
'#type' => (\Drupal::moduleHandler()->moduleExists('external_media')) ? 'external_media' : 'managed_file',
If you would like to force your module to use External Media add dependency to the module's .info file:
dependencies:
- drupal:external_mediaImage and File fields
The module supports both File and Image field types and allows control of visibility of each plugin individually in addition to permissions. File extension and cardinality field settings are respected in popup widgets when supported.
Premium module support
Premium version is no longer supported and its no longer available for purchase. If you have it installed contact me directly via email from the original receipt.
Depends on
Dependencies of the latest stable release
- file Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.