Problem/Motivation

After running drush acquia-dam:update-assets --media-type=<type> to migrate from the old Media: Acquia DAM module to the new Acquia DAM module, all document filenames are converted to lowercase. The customer needs original mixed-case filenames displayed on their frontend.

What we found:

  • The module's getValidFilename() method applies strtolower() to filenames during the migration/update process.
  • The field mapping UI only exposes these source fields by default: Created date, Deleted date, Expiration date, File upload date, File name, Last updated date, Release date, Size.
  • "File name" in the mapping references the local Drupal file entity, which has already been lowercased by the module.
  • The customer discovered that enabling "Title" via config/acquia-dam/metadata makes it available in the mapping UI. However, Title and the original filename are often different values in their DAM, so this is not a reliable substitute.

Proposed resolution

Provide way to preserve filename case.

Issue fork acquia_dam-3609217

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rajeshreeputra created an issue. See original summary.

rajeshreeputra’s picture

Title: Acquia DAM module lowercases filenames during migration — original filename casing not available as mappable source field » Provide option to preserve filename case while downloading assets.
rajeshreeputra’s picture

Status: Active » Needs review

Requesting review.

rohan-sinha’s picture

Status: Needs review » Reviewed & tested by the community

working as expected

rajeshreeputra’s picture

Status: Reviewed & tested by the community » Fixed

MR merged!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • rajeshreeputra committed 0a8afb99 on 1.1.x
    Resolve #3609217 "Provide option to preserve filename case while...

  • rajeshreeputra committed 2bd4aafa on 1.1.x
    Resolve #3609217 "Support filename option selection before asset...

  • rajeshreeputra committed 2bd4aafa on 1.1.x-webhook
    Resolve #3609217 "Support filename option selection before asset...