Using existing files (FTP uploads etc)

Last updated on
30 August 2018

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

Page status: No known problems

You can: