simple_media_bulk_upload_metadata_file
Simple Media Bulk Upload: Metadata File is a submodule for Simple Media Bulk Upload that lets editors attach a CSV or Excel file to a bulk upload session. Field values from the metadata file are applied automatically to each created media entity — no manual edit form required.
Without this module, bulk-uploading a large batch of files still means opening an edit form for every entity. With it, operators can prepare metadata in a spreadsheet, upload it alongside the files, and walk away. Entities whose required fields are fully covered by the metadata file skip the edit queue entirely and are saved in one pass. Entities with gaps remain in the sequential queue as normal.
Key features:
- Accepts CSV or Excel (.xlsx) metadata files
- Matches rows to uploaded files by filename
- Supports multi-value fields (pipe-separated), entity references (by label or machine name), and a wide range of date formats including Excel serial numbers
- Dynamic column guide in the upload form shows the available fields for the selected media type
- Three duplicate-handling modes: skip, create, or upsert (insert new, update existing media and create a new revision)
- Client-side duplicate detection in upsert mode — duplicate files are flagged in DropzoneJS before upload begins
hook_smbumf_entity_reference_resolvefor custom entity reference resolution (e.g. resolving by abbreviation rather than label)