Using existing files (FTP uploads etc)
Drupal 7 will no longer be supported after January 5, 2025. Learn more and find resources for Drupal 7 sites
If you are using Media module but need to use files that were not uploaded directly through the UI - such as :
- Legacy upgrades
- Embedded directly through WYSIWYG but not registered properly
- Files uploaded by FTP or otherwise transferred in the background
You can add them to your media library by using the additional module media_bulk_upload form at /admin/content/file/import
Despite being in a module called upload, and a button called 'import', this can also run over files that are already in your files directory and just absorb them as file entities and have them show up in your media library.
Use the form to select the folder; as documented, it must be the absolute file path on your server, so you must know that, eg /var/www/drupal7/sites/default/files/imports.
The form does have a confirmation step that will let you check what will happen, and it will not move them or cause duplicates. As far as limited testing goes anyway.
Help improve this page
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion